Real constants and functions: Difference between revisions
Content added Content deleted
(added standard ml) |
No edit summary |
||
Line 351: | Line 351: | ||
ceil x; (* ceiling *) |
ceil x; (* ceiling *) |
||
Math.pow (x, y); (* power *)</lang> |
Math.pow (x, y); (* power *)</lang> |
||
=={{header|TCl}}== |
|||
<lang tcl>expr {exp(1)} ;# e |
|||
expr {4 * atan(1)} ; # pi |
|||
expr {sqrt($x)} ; # square root |
|||
expr {log($x)} ; # natural logarithm, also log10 |
|||
expr {exp($x)} ; # exponential |
|||
expr {abs($x)} ; # absolute value |
|||
expr {floor($x)} ; # floor |
|||
expr {ceil($x)} ; # ceiling |
|||
expr {$x**$y} ;# power, also pow($x,$y)</lang> |