Real constants and functions: Difference between revisions

Content added Content deleted
(→‎{{header|Wren}}: 'exp' now in standard library.)
Line 2,296: Line 2,296:
ceil(x); //ceiling
ceil(x); //ceiling
pow(x,y); //power</lang>
pow(x,y); //power</lang>

=={{header|Picat}}==
<lang Picat>main =>
println(math.e),
println(math.pi),
nl,
println(sqrt(2)),
nl,
println(log(10)), % base e
println(log(math.pi,10)), % some base, here pi
println(log2(10)), % base 2
println(exp(2.302585092994046)),
nl,
println(abs(- math.e)),
nl,
println(floor(sqrt(101))),
println(ceiling(sqrt(101))),
nl,
println(math.pi**math.e), % power
println(pow(math.pi,math.e)), % power
nl.</lang>

{{out}}
<pre>2.718281828459045
3.141592653589793

1.414213562373095

2.302585092994046
2.011465867588061
3.321928094887362
10.000000000000002

2.718281828459045

10
11

22.459157718361041
22.459157718361041</pre>



=={{header|PicoLisp}}==
=={{header|PicoLisp}}==