Class : FactorialCoefficient
FactorialCoefficient :
prototype: FactorialCoefficient ()
description:default constructor
FactorialCoefficient :
prototype: FactorialCoefficient (long x )
description:constructor from an integer
input parameters:
x = value to assign to the factorial coefficient
FactorialCoefficient :
prototype: FactorialCoefficient (long , long y )
description:constructor from a rational number
input parameters:
x = numerator to assign to the factorial coefficient
y = denominator to assign to the factorial coefficient
~FactorialCoefficient :
prototype: ~FactorialCoefficient ()
description:destructor
SetToOne :
prototype: FactorialCoefficient& SetToOne ()
description:set the coefficient to one
input parameters:
return value: reference on current coefficient
operator *= :
prototype: FactorialCoefficient& operator *= (long x )
description:multiply by an integer
input parameters:
x = integer to use
return value: reference on current coefficient
operator /= :
prototype: FactorialCoefficient& operator /= (long y )
description:divide by an integer
input parameters:
y = integer to use
return value: reference on current coefficient
Power2Multiply :
prototype: FactorialCoefficient& Power2Multiply (long power )
description:multiply the coefficient by a power of 2
input parameters:
power = power exponent (must be greater than 0)
return value: reference on current coefficient
Power2Divide :
prototype: FactorialCoefficient& Power2Divide (long power )
description:divide the coefficient by a power of 2
input parameters:
power = power exponent (must be greater than 0)
return value: reference on current coefficient
FactorialMultiply :
prototype: FactorialCoefficient& FactorialMultiply (long x )
description:multiply the coefficient by the factorial of an integer
input parameters:
x = integer to use
return value: reference on current coefficient
PartialFactorialMultiply :
prototype: FactorialCoefficient& PartialFactorialMultiply (long , long end )
description:multiply the coefficient by the partial factorial end! / (start - 1)!
input parameters:
start = first integer in the partial factorial product
end = last integer in the partial factorial product
return value: reference on current coefficient
FactorialDivide :
prototype: FactorialCoefficient& FactorialDivide (long x )
description:multiply the coefficient by the factorial of an integer
input parameters:
x = integer to use
return value: reference on current coefficient
PartialFactorialDivide :
prototype: FactorialCoefficient& PartialFactorialDivide (long , long end )
description:divide the coefficient by the partial factorial end! / (start - 1)!
input parameters:
start = first integer in the partial factorial product
end = last integer in the partial factorial product
return value: reference on current coefficient
GetNumericalValue :
prototype: double GetNumericalValue ()
description:return numerical value associated to the coefficient
input parameters:
return value: numerical value associated to the coefficient
GetIntegerValue :
prototype: long GetIntegerValue ()
description:return integer value associated to the coefficient (0 if the coefficient is not an integer, or can't be cast into an integer)
input parameters:
return value: numerical value associated to the coefficient
Back to index.