Real constants and functions: Difference between revisions

Content added Content deleted
(Add min)
Line 1,753: Line 1,753:
=={{header|OCaml}}==
=={{header|OCaml}}==
Unless otherwise noted, the following functions are for floats only:
Unless otherwise noted, the following functions are for floats only:
<lang ocaml>sqrt x (* square root *)
<lang ocaml>Float.pi (* pi *)
sqrt x (* square root *)
log x (* natural logarithm--log base 10 also available (log10) *)
log x (* natural logarithm--log base 10 also available (log10) *)
exp x (* exponential *)
exp x (* exponential *)