ocaml / ocaml

The core OCaml system: compilers, runtime system, base libraries
https://ocaml.org
Other
5.51k stars 1.11k forks source link

atan2 and hypot #3806

Closed vicuna closed 19 years ago

vicuna commented 19 years ago

Original bug ID: 3806 Reporter: administrator Status: closed Resolution: won't fix Priority: normal Severity: feature Category: ~DO NOT USE (was: OCaml general) Related to: #5246

Bug description

Full_Name: Claude Marche Version: all OS: linux Submission from: pc9-154.lri.fr (129.175.9.154)

There are IEEE floating point functions for conversion from cartesian to polar coordinates.

http://www.opengroup.org/onlinepubs/009695399/functions/hypot.html

However, it is sad that in OCaml only the 'atan2' function is available, not 'hypot'

vicuna commented 19 years ago

Comment author: administrator

hypot() is not in ANSI C. Not portable enough.