Mailing list for all users of the OCaml language and system.
 help / color / mirror / Atom feed
From: Post Office!~/sentmail <fjr6b@cms.mail.virginia.edu>
To: caml-list@inria.fr
Subject: [Caml-list] Complex numbers in ocaml
Date: Fri, 21 Sep 2001 18:25:39 -0400 (EDT)	[thread overview]
Message-ID: <Pine.GSO.4.32.0109211819590.23870-100000@config.mail.Virginia.EDU> (raw)

I'm trying to write a system for complex numbers in ocaml for some
numerical work I'm doing, and I thought I'd ask if anyone else has such
code already existant.

Otherwise, given an abstract for numbers
	type number = Int of int | Float of float | Complex of float *
float | Error;;

is there an easy way to coerce numbers back out of type number in order to
operate on them?

Fred Ross

-------------------
Bug reports: http://caml.inria.fr/bin/caml-bugs  FAQ: http://caml.inria.fr/FAQ/
To unsubscribe, mail caml-list-request@inria.fr  Archives: http://caml.inria.fr


             reply	other threads:[~2001-09-21 22:25 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-09-21 22:25 Post Office!~/sentmail [this message]
2001-09-22 17:59 ` John Max Skaller
  -- strict thread matches above, loose matches on Subject: below --
2001-03-27 17:49 [Caml-list] Complex numbers in OCaml Arturo Borquez
2001-03-27 16:22 wester
2001-03-27 17:19 ` Markus Mottl
2001-03-27 17:48   ` Jan Skibinski
2001-03-27 19:25     ` Markus Mottl
2001-03-28  1:04 ` Michael Hohn
2001-03-29 14:26 ` Xavier Leroy

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=Pine.GSO.4.32.0109211819590.23870-100000@config.mail.Virginia.EDU \
    --to=fjr6b@cms.mail.virginia.edu \
    --cc=caml-list@inria.fr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox