Click or drag to resize

BigProduct Class

A BigProduct can be used to store arbitrarily large rational numbers by their prime factorization.
Inheritance Hierarchy
SystemObject
  NumberStoneBigProduct

Namespace:  NumberStone
Assembly:  WhetStone (in WhetStone.dll) Version: 1.0.4.0 (1.0.0.0)
Syntax
C#
public class BigProduct

The BigProduct type exposes the following members.

Constructors
  NameDescription
Public methodBigProduct
Constructor for BigProduct
Top
Properties
  NameDescription
Public propertysign
The BigProduct's sign.
Top
Methods
  NameDescription
Public methodDivide
Divides the BigProduct's value by n raised to pow.
Public methodDivideFactorial
Divides the BigProduct's value by n factorial raised to pow.
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodisInteger
Get whether the BigProduct can be expressed as an integer.
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodMultiply
Multiplies the BigProduct's value by n raised to pow.
Public methodMultiplyFactorial
Multiplies the BigProduct's value by n factorial raised to pow.
Public methodPow
Raises the BigProduct's value by p.
Public methodtoFraction
Public methodtoNum
Get the value of the BigProduct as a Int32.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Remarks

BigProduct stores numbers by their prime factorization, making it very speedy for multiplying, dividing, and raising to integer powers. But other than this, it cannot be otherwise changed.

The BigProduct is mutable.

See Also