Arithmetic/Complex: Difference between revisions
Content added Content deleted
(→{{header|Haskell}}: conjugate) |
(→{{header|OCaml}}: conjugate) |
||
Line 1,652: | Line 1,652: | ||
print_complex (mul a b); |
print_complex (mul a b); |
||
print_complex (inv a); |
print_complex (inv a); |
||
print_complex (neg a) |
print_complex (neg a); |
||
print_complex (conj a)</lang> |
|||
Using [http://forge.ocamlcore.org/projects/pa-do/ Delimited Overloading], the syntax can be made closer to the usual one: |
Using [http://forge.ocamlcore.org/projects/pa-do/ Delimited Overloading], the syntax can be made closer to the usual one: |