From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id RAA05977; Fri, 27 Feb 2004 17:36:13 +0100 (MET) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id RAA06792 for ; Fri, 27 Feb 2004 17:36:12 +0100 (MET) Received: from abel.swapping.umh.ac.be (nat2.umh.ac.be [193.190.193.2]) by concorde.inria.fr (8.12.10/8.12.10) with ESMTP id i1RGaBae008974 for ; Fri, 27 Feb 2004 17:36:11 +0100 Received: from abel.swapping.umh.ac.be ([127.0.0.1] helo=localhost ident=trch) by abel.swapping.umh.ac.be with esmtp (Exim 3.36 #1 (Debian)) id 1Awkyo-0000pS-00; Fri, 27 Feb 2004 17:36:50 +0100 Date: Fri, 27 Feb 2004 17:36:49 +0100 (CET) Message-Id: <20040227.173649.111156777.debian00@tiscali.be> To: alenhart@cs.ohiou.edu Cc: caml-list@inria.fr Subject: Re: [Caml-list] complex numbers From: Christophe TROESTLER In-Reply-To: <20040227131825.GB827@peuter> References: <403EDDD1.6080801@fssg.st-oskol.ru> <20040227131825.GB827@peuter> Organization: None X-Spook: beanpole SWAT Legion of Doom AVN ANC CISU explosion undercover 9705 Samford Road David John Oates X-Mailer-URL: http://www.mew.org/ X-Operating-System: GNU/Linux (http://www.linux.org/) X-Blessing: Om Ah Hum Vajra Guru Pema Siddhi Hum X-Mailer: Mew version 4.0.61 on Emacs 21.3.1 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Miltered: at concorde by Joe's j-chkmail ("http://j-chkmail.ensmp.fr")! X-Loop: caml-list@inria.fr X-Spam: no; 0.00; caml-list:01 troestler:01 tiscali:99 notations:01 chris:01 christophe:01 mul:01 mul:01 complex:03 complex:03 wrote:03 infix:03 let:04 let:04 functions:05 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk On Fri, 27 Feb 2004, Andrew Lenharth 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