Real constants and functions: Difference between revisions

m
Line 1,107:
 
=={{header|EasyLang}}==
EasyLang does not have ''e'', exponential, or a ceiling function.
<syntaxhighlight lang="easylang">
# e is not available
x = 1.5
# epi
# calculate e
print epi
e = pow 3 (1 / logn 3)
numfmt 4 0
# e
print e
# square root
print sqrt x2
# natural logarithm base 10
print lognlog10 x1000
# exponential is not available
print pow e x
# absolute value
print abs x-20
# floor
print floor x1.5
# ceiling is not available
if x > floor x
print floor x + 1
else
print x
end
# power
print pow 2 x10
</syntaxhighlight>
 
2,083

edits