Category talk:Wren-complex: Difference between revisions

Content added Content deleted
(→‎Source code: Broadened the scope of the division and equality operators.)
(→‎Complex numbers: Added a paragraph about support for complex matrices.)
Line 4: Line 4:


Complex numbers can be constructed from two separate Nums, from a pair of Nums, from a Rat object, from a complex string or (by copying) from another Complex number . These representations can also be mixed in operations as long as the first operand is itself a Complex object.
Complex numbers can be constructed from two separate Nums, from a pair of Nums, from a Rat object, from a complex string or (by copying) from another Complex number . These representations can also be mixed in operations as long as the first operand is itself a Complex object.

Support for complex matrices is also included though is not as extensive as for real matrices in the Wren-matrix module. It does however include some extra methods (such as conjugate transpose) which only apply to complex matrices.


===Source code===
===Source code===