For a tpsa t, I expected mad_ctpsa_rect to calculate r = CPX( real(t)*cos(imag(t)) , real(t)*sin(imag(t)) ), however this does not appear to be the case. For scalars as tpsas, mad_ctpsa_rect gives:
rect(1+1i) = 5.4030230586813977E-01 +4.5464871341284091E-01 # Should be 0.5403023058681398 + 0.8414709848078965i ?
For a tpsa
t
, I expectedmad_ctpsa_rect
to calculater = CPX( real(t)*cos(imag(t)) , real(t)*sin(imag(t)) )
, however this does not appear to be the case. For scalars as tpsas,mad_ctpsa_rect
gives: