Real constants and functions: Difference between revisions
Content added Content deleted
(→{{header|BASIC}}: Added ANSI BASIC.) |
|||
Line 3,364: | Line 3,364: | ||
=={{header|Standard ML}}== |
=={{header|Standard ML}}== |
||
<syntaxhighlight lang="sml">Math.e |
<syntaxhighlight lang="sml">Math.e (* e *) |
||
Math.pi |
Math.pi (* pi *) |
||
Math. |
(* Math.tau also available in some implementations *) |
||
⚫ | |||
Math.ln x |
Math.ln x (* natural logarithm--log base 10 also available (Math.log10) *) |
||
⚫ | |||
Math.exp ; (* exponential *) |
|||
abs x (* absolute value *) |
|||
floor x (* floor *) |
|||
ceil x (* ceiling *) |
|||
Math.pow (x, y) (* power *) |
|||
~ |
~x (* negation *)</syntaxhighlight> |
||
=={{header|Stata}}== |
=={{header|Stata}}== |