factor/library/math/constants.facts

34 lines
1010 B
Plaintext
Raw Normal View History

2006-01-14 17:50:59 -05:00
USING: help kernel-internals math ;
2006-08-16 21:55:53 -04:00
HELP: cells
2006-01-14 17:50:59 -05:00
{ $values { "m" "an integer" } { "n" "an integer" } }
{ $description "Computes the number of bytes corresponding to " { $snippet "m" } " CPU operand-sized cells." } ;
2006-08-16 21:55:53 -04:00
HELP: cell-bits
{ $values { "n" "an integer" } }
{ $description "Outputs the number of bits in one CPU operand-sized cell." } ;
2006-01-14 17:50:59 -05:00
2006-08-16 21:55:53 -04:00
HELP: i
2006-01-14 17:50:59 -05:00
{ $values { "i" "the imaginary unit" } } ;
2006-08-16 21:55:53 -04:00
HELP: -i
{ $values { "-i" "the negated imaginary unit" } } ;
2006-01-14 17:50:59 -05:00
2006-08-16 21:55:53 -04:00
HELP: e
2006-01-14 17:50:59 -05:00
{ $values { "e" "base of natural logarithm" } } ;
2006-08-16 21:55:53 -04:00
HELP: pi
2006-01-14 17:50:59 -05:00
{ $values { "pi" "circumference of circle with diameter 1" } } ;
2006-08-16 21:55:53 -04:00
HELP: epsilon
2006-01-14 17:50:59 -05:00
{ $values { "epsilon" "smallest floating point value you can add to 1 without underflow" } } ;
2006-08-16 21:55:53 -04:00
HELP: first-bignum
2006-01-14 17:50:59 -05:00
{ $values { "n" "smallest positive integer not representable by a fixnum" } } ;
2006-08-16 21:55:53 -04:00
HELP: most-positive-fixnum
2006-01-14 17:50:59 -05:00
{ $values { "n" "largest positive integer representable by a fixnum" } } ;
2006-08-16 21:55:53 -04:00
HELP: most-negative-fixnum
2006-01-14 17:50:59 -05:00
{ $values { "n" "smallest negative integer representable by a fixnum" } } ;