= #JxnPortable\docs\applet_examples\Calculator2.jxn

! arithmetic with mathematical functions:
phi = PI / 3
 = 1.0471975511965976 (double)
sn = sin( phi )
 = 0.8660254037844386 (double)
cs = cos( phi )
 = 0.5000000000000001 (double)
sn^2 + cs^2
 = 1.0 (double)

! arithmetic with complex values:
z = 3 + j 4
 = 3.0 + j 4.0 = 5.0 <) 53.13010235415598° (JxnComplexAlgebra)
z + conj(z)
 = 6.0 + j 0.0 = 6.0 <) 0.0° (JxnComplexAlgebra)
j * sqrt( 5 * z )
 = -2.23606797749979 + j 4.47213595499958 = 5.0 <) 116.56505117707799° (JxnComplexAlgebra)