Anonymous user
Real constants and functions: Difference between revisions
m
→{{header|OCaml}}: added pi
(Add min) |
m (→{{header|OCaml}}: added pi) |
||
Line 1,753:
=={{header|OCaml}}==
Unless otherwise noted, the following functions are for floats only:
<lang ocaml>
sqrt x (* square root *)
log x (* natural logarithm--log base 10 also available (log10) *)
exp x (* exponential *)
|