Real constants and functions: Difference between revisions

Content added Content deleted
No edit summary
(added Fortran)
Line 89: Line 89:
: ceil ( f -- f ) fnegate floor fnegate ; \ not standard, though fround is available
: ceil ( f -- f ) fnegate floor fnegate ; \ not standard, though fround is available
f** ( f e -- f^e )
f** ( f e -- f^e )

=={{header|Fortran}}==
e ! Not available. Can be calculated EXP(1)
pi ! Not available. Can be calculated 4.0*ATAN(1.0)
SQRT(x) ! square root
LOG(x) ! natural logarithm
LOG10(x) ! logarithm to base 10
EXP(x) ! exponential
ABS(x) ! absolute value
FLOOR(x) ! floor - Fortran 90 or later only
CEILING(x) ! ceiling - Fortran 90 or later only
x**y ! x raised to the y power


=={{header|Haskell}}==
=={{header|Haskell}}==