= #JxnPortable\docs\applet_examples\ComplexPhasors.jxn

a = 2 + j 3
b = 4 + j 2
pf1 = plot( a, "a", B ).apnd( b, "b", R ).add( a+b, "a+b", M ).setXYLabels( "re", "im" )
pf1.add( a, -b, "-b", G ).add( a-b, "a-b", C ).setPlotFrameTitle( "Complex Phasors" )

Z = 1200 + j 900
U = 1000 + 0j
I = U / Z
S = U conj I
pf2 = plot90( U, "U", B ).add( 1000 I, "I", R ).add( S, "S", G ).setXYLabels( "im", "re" )
pf2.setPlotFrameTitle( "U/V,  I/mA,  S/VA,  Z = ( 1200 + j 900 )\#937" )