The natural logarithm of a complex number basicly gives the polar form. ^. 1j1 0.346574j0.785398
--- Den søn 10/10/10 skrev david alis <[email protected]>: Fra: david alis <[email protected]> Emne: [Jprogramming] represention of complex numbers Til: "Programming forum" <[email protected]> Dato: søndag 10. oktober 2010 13.26 Complex numbers always seem to be displayed using cartesian coordinates. When complex numbers represent rotations and displacements in 2-D then rotations are better displayed in polar form and displacements in cartesian. 1ad45 NB. rotate by 45 degrees 0.707107j0.707107 I wrote a simple polar format verb because i couldn't find an !: option that would help. Is there a global setting that controls the display format of complex? Thanks David ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
