From: John Whitley <whitley@cse.buffalo.edu>
To: caml-list@inria.fr
Subject: Re: nth_root of num?
Date: Tue, 1 Dec 1998 15:25:26 -0500 (EST) [thread overview]
Message-ID: <13924.20450.862916.697199@hadar.cs.Buffalo.EDU> (raw)
In-Reply-To: <13923.50811.334235.394872@sun8f.LRI>
Claude Marche writes:
> An algorithm for computing the nth root of a float is easy :
>
> let nth_root n x = exp (log(x)/.(float_of_int n));;
Alternatively, one could use the (**) float exponentiation operator:
let nth_root n x = x ** (1.0 /. n);;
-- John
prev parent reply other threads:[~1998-12-02 12:48 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
1998-11-25 13:48 N Hur
1998-11-26 16:23 ` Claude Marche
[not found] ` <Pine.SOL.4.05.9812011025090.6015-100000@odin.maths.bath.ac.uk>
1998-12-01 10:35 ` Claude Marche
1998-12-01 20:25 ` John Whitley [this message]
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=13924.20450.862916.697199@hadar.cs.Buffalo.EDU \
--to=whitley@cse.buffalo.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