112311241125112611271128112911301131
return ph2; } // Natural log of a Phasor public static Phasor log(Phasor ph1){ Complex com = new Complex(Math.log(ph1.magnitude), ph1.phaseInDeg); Phasor ph2 = Phasor.toPhasor(com);; return ph2; }
11361137113811391140114111421143114411451146
Phasor ph2 = new Phasor(); if(ph1.phaseInDeg==0.0){ ph2.reset(Math.sin(ph1.magnitude), 0.0D); } else{ Complex com = ph1.toRectangular(); com = Complex.sin(com); ph2 = Phasor.toPhasor(com); } return ph2;
11511152115311541155115611571158115911601161
Phasor ph2 = new Phasor(); if(ph1.phaseInDeg==0.0){ ph2.reset(Math.cos(ph1.magnitude), 0.0D); } else{ Complex com = ph1.toRectangular(); com = Complex.cos(com); ph2 = Phasor.toPhasor(com); } return ph2;
11661167116811691170117111721173117411751176
Phasor ph2 = new Phasor(); if(ph1.phaseInDeg==0.0){ ph2.reset(Math.tan(ph1.magnitude), 0.0D); } else{ Complex com = ph1.toRectangular(); com = Complex.tan(com); ph2 = Phasor.toPhasor(com); } return ph2;
11811182118311841185118611871188118911901191
Phasor ph2 = new Phasor(); if(ph1.phaseInDeg==0.0){ ph2.reset(Fmath.cot(ph1.magnitude), 0.0D); } else{ Complex com = ph1.toRectangular(); com = Complex.cot(com); ph2 = Phasor.toPhasor(com); } return ph2;
11961197119811991200120112021203120412051206
Phasor ph2 = new Phasor(); if(ph1.phaseInDeg==0.0){ ph2.reset(Fmath.sec(ph1.magnitude), 0.0D); } else{ Complex com = ph1.toRectangular(); com = Complex.sec(com); ph2 = Phasor.toPhasor(com); } return ph2;
12111212121312141215121612171218121912201221
Phasor ph2 = new Phasor(); if(ph1.phaseInDeg==0.0){ ph2.reset(Fmath.csc(ph1.magnitude), 0.0D); } else{ Complex com = ph1.toRectangular(); com = Complex.csc(com); ph2 = Phasor.toPhasor(com); } return ph2;
12261227122812291230123112321233123412351236
Phasor ph2 = new Phasor(); if(ph1.phaseInDeg==0.0){ ph2.reset(Fmath.exsec(ph1.magnitude), 0.0D); } else{ Complex com = ph1.toRectangular(); com = Complex.exsec(com); ph2 = Phasor.toPhasor(com); } return ph2;
12411242124312441245124612471248124912501251
Phasor ph2 = new Phasor(); if(ph1.phaseInDeg==0.0){ ph2.reset(Fmath.vers(ph1.magnitude), 0.0D); } else{ Complex com = ph1.toRectangular(); com = Complex.vers(com); ph2 = Phasor.toPhasor(com); } return ph2;
12561257125812591260126112621263126412651266
Phasor ph2 = new Phasor(); if(ph1.phaseInDeg==0.0){ ph2.reset(Fmath.covers(ph1.magnitude), 0.0D); } else{ Complex com = ph1.toRectangular(); com = Complex.covers(com); ph2 = Phasor.toPhasor(com); } return ph2;