* [Caml-list] How standard is exponentiation in ocaml?
[not found] ` <CAAYUt0OGyp35f-aDtCsQy2OQH1JrHJUp1GBUiUPEkBrwFth5xg@mail.gmail.com>
@ 2014-06-04 20:21 ` Arthur Breitman
2014-06-04 21:03 ` Jacques-Henri Jourdan
0 siblings, 1 reply; 2+ messages in thread
From: Arthur Breitman @ 2014-06-04 20:21 UTC (permalink / raw)
To: caml-list
[-- Attachment #1: Type: text/plain, Size: 393 bytes --]
Hello,
How standard is exponentiation in ocaml?
Specifically, is the result of
(**): float -> float -> float
guaranteed to be the same for the same input regardless of the compiler's
version?
Are any number of digits guaranteed to be correct? In which case I could
truncate.
I do not care too much about exactitude, but I need the operation's
semantic to be exactly defined.
Best,
Arthur
[-- Attachment #2: Type: text/html, Size: 517 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [Caml-list] How standard is exponentiation in ocaml?
2014-06-04 20:21 ` [Caml-list] How standard is exponentiation in ocaml? Arthur Breitman
@ 2014-06-04 21:03 ` Jacques-Henri Jourdan
0 siblings, 0 replies; 2+ messages in thread
From: Jacques-Henri Jourdan @ 2014-06-04 21:03 UTC (permalink / raw)
To: caml-list
[-- Attachment #1: Type: text/plain, Size: 663 bytes --]
Hi,
(**) in OCaml is implemented using the C stdlib pow function.
AFAIK, there is no strict guarantees on the precision of these functions...
--
JH
Le 04/06/2014 22:21, Arthur Breitman a écrit :
> Hello,
>
> How standard is exponentiation in ocaml?
>
> Specifically, is the result of
> (**): float -> float -> float
> guaranteed to be the same for the same input regardless of the compiler's
> version?
>
> Are any number of digits guaranteed to be correct? In which case I could
> truncate.
>
> I do not care too much about exactitude, but I need the operation's
> semantic to be exactly defined.
>
> Best,
> Arthur
>
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 538 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-06-04 21:03 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <CAAYUt0N47wkUfWvbg35+Rdu-wwmw2yRTGU41KYh=U0Kc=61=SQ@mail.gmail.com>
[not found] ` <CAAYUt0OGyp35f-aDtCsQy2OQH1JrHJUp1GBUiUPEkBrwFth5xg@mail.gmail.com>
2014-06-04 20:21 ` [Caml-list] How standard is exponentiation in ocaml? Arthur Breitman
2014-06-04 21:03 ` Jacques-Henri Jourdan
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox