Browse thread
[Caml-list] complex numbers
-
Alexander Danilov
-
Andrew Lenharth
- Christophe TROESTLER
- Andrew Lenharth
-
Andrew Lenharth
[
Home
]
[ Index:
by date
|
by threads
]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
| Date: | -- (:) |
| From: | Christophe TROESTLER <debian00@t...> |
| Subject: | Re: [Caml-list] complex numbers |
On Fri, 27 Feb 2004, Andrew Lenharth <alenhart@cs.ohiou.edu> wrote:
>
> let y = mul x {re = -1.0; im = -1.0};;
To ease the notations, you can also define infix operators for complex
functions. E.g. for the above:
let ( *: ) = mul;;
let y = x *: {re = -1.0; im = -1.0};;
ChriS
-------------------
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners