Real constants and functions: Difference between revisions

add bqn
m (syntax highlighting fixup automation)
(add bqn)
Line 611:
Power x to the y
<syntaxhighlight lang="blz">x ** y</syntaxhighlight>
 
=={{header|BQN}}==
BQN has all the required constants, either within functions or available as single symbols:
<syntaxhighlight lang="bqn">
⋆1 # e and e^x
2.718281828459045
π # pi
3.141592653589793
√2 # square root
1.414213562373095
2⋆⁼10 # logarithm base n (inverse power)
3.321928094887363
|-1 # absolute value
1
⌊3.2 # floor
3
⌈3.2 # ceiling
4
3⋆4 # power
81</syntaxhighlight>
 
=={{header|Bracmat}}==
236

edits