Real constants and functions: Difference between revisions

Content added Content deleted
(Added Applesoft BASIC, Chipmunk Basic, Gambas, GW-BASIC, QBasic, MSX Basic and XBasic)
(RPL: add section)
Line 3,031: Line 3,031:
>> x .^ 2
>> x .^ 2
25</syntaxhighlight>
25</syntaxhighlight>

{| class="wikitable"
! RPL code
! Comment
|-
|
'''e'''
'''π'''
x '''√'''
x '''LN'''
x '''LNP'''
x '''LOG'''
x '''EXP'''
x '''ABS'''
x '''FLOOR'''
x '''CEIL'''
x y '''^'''
|
e
π
square root
logarithm (base e)
equivalent to x 1 + LN - e.g. Log(x+1) - but more accurate for small values of x
logarithm (base 10)
exponential
absolute value
floor
ceiling
power
|}


=={{header|Ruby}}==
=={{header|Ruby}}==