Real constants and functions: Difference between revisions
→{{header|EasyLang}}
m (RPL: add section) |
|||
Line 1,107:
EasyLang does not have ''e'', exponential, or a ceiling function.
<syntaxhighlight lang="easylang">
x = 1.5
# calculate e
numfmt 4 0
# e
print e
# square root
print sqrt x
# natural logarithm
print logn x
# exponential
print pow e x
# absolute value
print abs x
# floor
print floor x
# ceiling
if x > floor x
print floor x + 1
else
print x
end
# power
print pow 2 x
</syntaxhighlight>
|