The Complex
class is used to represent and operate on complex numbers.
The DoubleWithExp
class defines an expontiation operator '~^' for Doubles.
The IntWithExp
class defines an expontiation operator '~^' for Ints.
The LongWithExp
class defines an expontiation operator '~^' for Longs.
To maintain 64 bit precision, no floating point operations are used.
The ProbNumber
class is used to represent probabilistic numbers '(x, p)'
where 'x' is a real number and 'p' is its probability of occurrence.
The Rational
class is used to represent and operate on rational numbers.
The Basic
object provides additional methods for computing logarithms and a
method for transforming Booleans into Ints.
The BasicTest
object is used to test the Basic
object.
The Combinatorics
object provides several common combinatorics functions,
such as factorial permutations, combinations, gamma and beta functions.
The CombinatoricsTest
object tests the methods in the Combinatorics
object.
The CombinatoricsTest2
object tests the Gamma and factorial methods in the
Combinatorics
object.
The Complex
companion object defines the origin (zero) and the fourth roots
of unity as well as some utility functions.
The ComplexTest
object is used to test the Complex
class.
The DoubleWithExp
companion object provides implicit conversion from Double
to DoubleWithExp allowing '~^' to be applied to Doubles.
It also provide a negative exponential function.
The DoubleWithExpTest
object is used to test the DoubleWithExp
class.
The ExtremeD
object contains constants representing extreme values for
Double (IEEE 754 double precision floating point numbers).
The ExtremeDTest
object is used to test the ExtremeD
class.
The IntWithExp
object provides implicit conversion from Int to IntWithExp
allowing '~^' to be applied to Ints.
The IntWithExpTest
object is used to test the IntWithExp
class.
The LongWithExp
obejct provides implicit conversion from Long to LongWithExp
allowing '~^' to be applied to Longs.
The LongWithExpTest
object is used to test the LongWithExp
class.
The Primes
object provides an array of 1000 prime numbers as well as methods
to generate prime numbers within a given range.
The PrimesTest
object is use to perform timing test on the Primes
object.
The ProbNumberTest
object is used to test the ProbNumber
class.
The Rational
companion object defines the origin (zero), one and minus one
as well as some utility functions.
The RationalTest
object is used to test the Rational
class.
The math package contains classes, traits and objects for common mathematical operations.