Arithmetic/Complex: Difference between revisions
Content deleted Content added
→{{header|OCaml}}: conjugate |
→{{header|Common Lisp}}: conjugate |
||
Line 686: | Line 686: | ||
> (/ #c(0 2)) |
> (/ #c(0 2)) |
||
#C(0 -1/2) |
#C(0 -1/2) |
||
> (conjugate #c(1 1)) |
|||
#C(1 -1)</lang> |
|||
Complex numbers can be constructed from real and imaginary parts using the <tt>complex</tt> function, and taken apart using the <tt>realpart</tt> and <tt>imagpart</tt> functions. |
Complex numbers can be constructed from real and imaginary parts using the <tt>complex</tt> function, and taken apart using the <tt>realpart</tt> and <tt>imagpart</tt> functions. |