Add more math.constants
parent
cf670bd234
commit
6d5c1bf1d2
|
@ -4,6 +4,8 @@ IN: math.constants
|
||||||
ARTICLE: "math-constants" "Constants"
|
ARTICLE: "math-constants" "Constants"
|
||||||
"Standard mathematical constants:"
|
"Standard mathematical constants:"
|
||||||
{ $subsection e }
|
{ $subsection e }
|
||||||
|
{ $subsection gamma }
|
||||||
|
{ $subsection phi }
|
||||||
{ $subsection pi }
|
{ $subsection pi }
|
||||||
"Various limits:"
|
"Various limits:"
|
||||||
{ $subsection most-positive-fixnum }
|
{ $subsection most-positive-fixnum }
|
||||||
|
@ -15,6 +17,13 @@ ABOUT: "math-constants"
|
||||||
HELP: e
|
HELP: e
|
||||||
{ $values { "e" "base of natural logarithm" } } ;
|
{ $values { "e" "base of natural logarithm" } } ;
|
||||||
|
|
||||||
|
HELP: gamma
|
||||||
|
{ $values { "gamma" "Euler-Mascheroni constant" } }
|
||||||
|
{ $description "The Euler-Mascheroni constant, also called \"Euler's constant\" or \"the Euler constant\"." } ;
|
||||||
|
|
||||||
|
HELP: phi
|
||||||
|
{ $values { "phi" "golden ratio" } } ;
|
||||||
|
|
||||||
HELP: pi
|
HELP: pi
|
||||||
{ $values { "pi" "circumference of circle with diameter 1" } } ;
|
{ $values { "pi" "circumference of circle with diameter 1" } } ;
|
||||||
|
|
||||||
|
|
|
@ -3,5 +3,7 @@
|
||||||
IN: math.constants
|
IN: math.constants
|
||||||
|
|
||||||
: e ( -- e ) 2.7182818284590452354 ; inline
|
: e ( -- e ) 2.7182818284590452354 ; inline
|
||||||
|
: gamma ( -- gamma ) 0.57721566490153286060 ; inline
|
||||||
: pi ( -- pi ) 3.14159265358979323846 ; inline
|
: pi ( -- pi ) 3.14159265358979323846 ; inline
|
||||||
|
: phi ( -- phi ) 1.61803398874989484820 ; inline
|
||||||
: epsilon ( -- epsilon ) 2.2204460492503131e-16 ; inline
|
: epsilon ( -- epsilon ) 2.2204460492503131e-16 ; inline
|
||||||
|
|
Loading…
Reference in New Issue