Advertisement
flatcap89

ParSchaltg.java

Jan 5th, 2013
40
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.42 KB | None | 0 0
  1. package prakt.v6;
  2.  
  3. import blank.v5.Complex;
  4.  
  5. public class ParSchaltg extends KombSchaltg {
  6.    
  7.     public ParSchaltg(Zweipol elem1, Zweipol elem2) {
  8.         super(elem1, elem2);
  9.     }
  10.    
  11.     public Complex widerstand(double freq) {
  12.        
  13.         Complex Z1 = new Complex(1,0).div(elem1().widerstand(freq));
  14.         Complex Z2 = new Complex(1,0).div(elem2().widerstand(freq));
  15.         Complex Z = new Complex(1,0).div(Z1.add(Z2));
  16.         return Z;
  17.     }
  18.  
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement