Real constants and functions: Difference between revisions
Content added Content deleted
(Add min) |
m (→{{header|OCaml}}: added pi) |
||
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> |
<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 *) |