Real constants and functions: Difference between revisions
Content deleted Content added
added standard ml |
|||
Line 340: | Line 340: | ||
(ceiling x) ;ceiling |
(ceiling x) ;ceiling |
||
(expt x y) ;power</lang> |
(expt x y) ;power</lang> |
||
=={{header|Standard ML}}== |
|||
<lang sml>Math.e; (* e *) |
|||
Math.pi; (* pi *) |
|||
Math.sqrt x; (* square root *) |
|||
Math.ln x; (* natural logarithm--log base 10 also available (Math.log10) *) |
|||
Math.exp x; (* exponential *) |
|||
abs x; (* absolute value *) |
|||
floor x; (* floor *) |
|||
ceil x; (* ceiling *) |
|||
Math.pow (x, y); (* power *)</lang> |