|
| Number () |
|
| Number (string number, const ParseOptions &po=default_parse_options) |
|
| Number (int numerator, int denominator=1, int exp_10=0) |
|
| Number (const Number &o) |
|
void | set (string number, const ParseOptions &po=default_parse_options) |
|
void | set (int numerator, int denominator=1, int exp_10=0) |
|
void | setInfinity () |
|
void | setPlusInfinity () |
|
void | setMinusInfinity () |
|
void | setFloat (double d_value) |
|
void | setInternal (const mpz_t &mpz_value) |
|
void | setInternal (const mpq_t &mpq_value) |
|
void | setInternal (const mpfr_t &mpfr_value) |
|
void | setInternal (const cln::cl_N &cln_value) |
|
void | setImaginaryPart (const Number &o) |
|
void | setImaginaryPart (int numerator, int denominator=1, int exp_10=0) |
|
void | set (const Number &o) |
|
void | clear () |
|
const cln::cl_N & | internalValue () const |
|
const mpz_t & | internalInteger () const |
|
const mpq_t & | internalRational () const |
|
const mpfr_t & | internalFloat () const |
|
const NumberType & | internalType () const |
|
double | floatValue () const |
|
int | intValue (bool *overflow=NULL) const |
|
bool | isApproximate () const |
|
bool | isApproximateType () const |
|
void | setApproximate (bool is_approximate=true) |
|
int | precision () const |
|
void | setPrecision (int prec) |
|
bool | isUndefined () const |
|
bool | isInfinite () const |
|
bool | isInfinity () const |
|
bool | isPlusInfinity () const |
|
bool | isMinusInfinity () const |
|
Number | realPart () const |
|
Number | imaginaryPart () const |
|
Number | numerator () const |
|
Number | denominator () const |
|
Number | complexNumerator () const |
|
Number | complexDenominator () const |
|
void | operator= (const Number &o) |
|
void | operator-- (int) |
|
void | operator++ (int) |
|
Number | operator- () const |
|
Number | operator* (const Number &o) const |
|
Number | operator/ (const Number &o) const |
|
Number | operator+ (const Number &o) const |
|
Number | operator- (const Number &o) const |
|
Number | operator^ (const Number &o) const |
|
Number | operator&& (const Number &o) const |
|
Number | operator|| (const Number &o) const |
|
Number | operator! () const |
|
void | operator*= (const Number &o) |
|
void | operator/= (const Number &o) |
|
void | operator+= (const Number &o) |
|
void | operator-= (const Number &o) |
|
void | operator^= (const Number &o) |
|
bool | operator== (const Number &o) const |
|
bool | operator!= (const Number &o) const |
|
bool | bitAnd (const Number &o) |
|
bool | bitOr (const Number &o) |
|
bool | bitXor (const Number &o) |
|
bool | bitNot () |
|
bool | bitEqv (const Number &o) |
|
bool | shiftLeft (const Number &o) |
|
bool | shiftRight (const Number &o) |
|
bool | shift (const Number &o) |
|
bool | hasRealPart () const |
|
bool | hasImaginaryPart () const |
|
bool | isComplex () const |
|
bool | isInteger () const |
|
Number | integer () const |
|
bool | isRational () const |
|
bool | isReal () const |
|
bool | isFraction () const |
|
bool | isZero () const |
|
bool | isOne () const |
|
bool | isTwo () const |
|
bool | isTen () const |
|
bool | isI () const |
|
bool | isMinusI () const |
|
bool | isMinusOne () const |
|
bool | isNegative () const |
|
bool | isNonNegative () const |
|
bool | isPositive () const |
|
bool | isNonPositive () const |
|
bool | realPartIsNegative () const |
|
bool | realPartIsPositive () const |
|
bool | imaginaryPartIsNegative () const |
|
bool | imaginaryPartIsPositive () const |
|
bool | hasNegativeSign () const |
|
bool | hasPositiveSign () const |
|
bool | equalsZero () const |
|
bool | equals (const Number &o) const |
|
bool | equalsApproximately (const Number &o, int prec) const |
|
ComparisonResult | compare (const Number &o) const |
|
ComparisonResult | compareApproximately (const Number &o, int prec=EQUALS_PRECISION_LOWEST) const |
|
ComparisonResult | compareImaginaryParts (const Number &o) const |
|
ComparisonResult | compareRealParts (const Number &o) const |
|
bool | isGreaterThan (const Number &o) const |
|
bool | isLessThan (const Number &o) const |
|
bool | isGreaterThanOrEqualTo (const Number &o) const |
|
bool | isLessThanOrEqualTo (const Number &o) const |
|
bool | isEven () const |
|
bool | denominatorIsEven () const |
|
bool | denominatorIsTwo () const |
|
bool | numeratorIsEven () const |
|
bool | numeratorIsOne () const |
|
bool | numeratorIsMinusOne () const |
|
bool | isOdd () const |
|
int | integerLength () const |
|
bool | add (const Number &o) |
|
bool | subtract (const Number &o) |
|
bool | multiply (const Number &o) |
|
bool | divide (const Number &o) |
|
bool | recip () |
|
bool | raise (const Number &o, bool try_exact=true) |
|
bool | exp10 (const Number &o) |
|
bool | exp2 (const Number &o) |
|
bool | exp10 () |
|
bool | exp2 () |
|
bool | square () |
|
bool | negate () |
|
void | setNegative (bool is_negative) |
|
bool | abs () |
|
bool | signum () |
|
bool | round (const Number &o) |
|
bool | floor (const Number &o) |
|
bool | ceil (const Number &o) |
|
bool | trunc (const Number &o) |
|
bool | mod (const Number &o) |
|
bool | isqrt () |
|
bool | round () |
|
bool | floor () |
|
bool | ceil () |
|
bool | trunc () |
|
bool | frac () |
|
bool | rem (const Number &o) |
|
bool | smod (const Number &o) |
|
bool | irem (const Number &o) |
|
bool | irem (const Number &o, Number &q) |
|
bool | iquo (const Number &o) |
|
bool | iquo (const Number &o, Number &r) |
|
int | getBoolean () const |
|
void | toBoolean () |
|
void | setTrue (bool is_true=true) |
|
void | setFalse () |
|
void | setLogicalNot () |
|
void | e () |
|
void | pi () |
|
void | catalan () |
|
void | euler () |
|
bool | zeta () |
|
bool | sin () |
|
bool | asin () |
|
bool | sinh () |
|
bool | asinh () |
|
bool | cos () |
|
bool | acos () |
|
bool | cosh () |
|
bool | acosh () |
|
bool | tan () |
|
bool | atan () |
|
bool | tanh () |
|
bool | atanh () |
|
bool | ln () |
|
bool | log (const Number &o) |
|
bool | exp () |
|
bool | lambertW () |
|
bool | gcd (const Number &o) |
|
bool | lcm (const Number &o) |
|
bool | factorial () |
|
bool | multiFactorial (const Number &o) |
|
bool | doubleFactorial () |
|
bool | binomial (const Number &m, const Number &k) |
|
bool | factorize (vector< Number > &factors) |
|
bool | add (const Number &o, MathOperation op) |
|
string | printNumerator (int base=10, bool display_sign=true, BaseDisplay base_display=BASE_DISPLAY_NORMAL, bool lower_case=false) const |
|
string | printDenominator (int base=10, bool display_sign=true, BaseDisplay base_display=BASE_DISPLAY_NORMAL, bool lower_case=false) const |
|
string | printImaginaryNumerator (int base=10, bool display_sign=true, BaseDisplay base_display=BASE_DISPLAY_NORMAL, bool lower_case=false) const |
|
string | printImaginaryDenominator (int base=10, bool display_sign=true, BaseDisplay base_display=BASE_DISPLAY_NORMAL, bool lower_case=false) const |
|
string | print (const PrintOptions &po=default_print_options, const InternalPrintStruct &ips=top_ips) const |
|
| Number () |
|
| Number (string number, const ParseOptions &po=default_parse_options) |
|
| Number (long int numerator, long int denominator=1, long int exp_10=0) |
|
| Number (const Number &o) |
|
void | set (string number, const ParseOptions &po=default_parse_options) |
|
void | set (long int numerator, long int denominator=1, long int exp_10=0, bool keep_precision=false, bool keep_imag=false) |
|
void | setPlusInfinity (bool keep_precision=false, bool keep_imag=false) |
|
void | setMinusInfinity (bool keep_precision=false, bool keep_imag=false) |
|
void | setFloat (double d_value) |
|
bool | setInterval (const Number &nr_lower, const Number &nr_upper, bool keep_precision=false) |
|
void | setInternal (const mpz_t &mpz_value, bool keep_precision=false, bool keep_imag=false) |
|
void | setInternal (mpz_srcptr mpz_value, bool keep_precision=false, bool keep_imag=false) |
|
void | setInternal (const mpq_t &mpq_value, bool keep_precision=false, bool keep_imag=false) |
|
void | setInternal (const mpz_t &mpz_num, const mpz_t &mpz_den, bool keep_precision=false, bool keep_imag=false) |
|
void | setInternal (const mpfr_t &mpfr_value, bool merge_precision=false, bool keep_imag=false) |
|
void | setImaginaryPart (const Number &o) |
|
void | setImaginaryPart (long int numerator, long int denominator=1, long int exp_10=0) |
|
void | set (const Number &o, bool merge_precision=false, bool keep_imag=false) |
|
void | clear (bool keep_precision=false) |
|
void | clearReal () |
|
void | clearImaginary () |
|
const mpq_t & | internalRational () const |
|
const mpfr_t & | internalUpperFloat () const |
|
const mpfr_t & | internalLowerFloat () const |
|
mpq_t & | internalRational () |
|
mpfr_t & | internalUpperFloat () |
|
mpfr_t & | internalLowerFloat () |
|
Number * | internalImaginary () const |
|
void | markAsImaginaryPart (bool is_imag=true) |
|
const NumberType & | internalType () const |
|
bool | setToFloatingPoint () |
|
void | precisionToInterval () |
|
bool | intervalToPrecision (long int min_precision=2) |
|
void | intervalToMidValue () |
|
bool | mergeInterval (const Number &o, bool set_to_overlap=false) |
|
void | setUncertainty (const Number &o, bool force_interval=false) |
|
Number | uncertainty () const |
|
Number | relativeUncertainty () const |
|
double | floatValue () const |
|
int | intValue (bool *overflow=NULL) const |
|
unsigned int | uintValue (bool *overflow=NULL) const |
|
long int | lintValue (bool *overflow=NULL) const |
|
unsigned long int | ulintValue (bool *overflow=NULL) const |
|
bool | isApproximate () const |
|
bool | isFloatingPoint () const |
|
bool | isInterval (bool ignore_imag=true) const |
|
bool | imaginaryPartIsInterval () const |
|
void | setApproximate (bool is_approximate=true) |
|
int | precision (int calculate_from_interval=0) const |
|
void | setPrecision (int prec) |
|
bool | isUndefined () const |
|
bool | isInfinite (bool ignore_imag=true) const |
|
bool | isPlusInfinity (bool ignore_imag=false) const |
|
bool | isMinusInfinity (bool ignore_imag=false) const |
|
bool | includesInfinity (bool ignore_imag=false) const |
|
bool | includesPlusInfinity () const |
|
bool | includesMinusInfinity () const |
|
Number | realPart () const |
|
Number | imaginaryPart () const |
|
Number | numerator () const |
|
Number | denominator () const |
|
Number | complexNumerator () const |
|
Number | complexDenominator () const |
|
Number | lowerEndPoint (bool include_imag=false) const |
|
Number | upperEndPoint (bool include_imag=false) const |
|
void | operator= (const Number &o) |
|
void | operator= (long int i) |
|
void | operator-- (int) |
|
void | operator++ (int) |
|
Number | operator- () const |
|
Number | operator* (const Number &o) const |
|
Number | operator/ (const Number &o) const |
|
Number | operator+ (const Number &o) const |
|
Number | operator- (const Number &o) const |
|
Number | operator^ (const Number &o) const |
|
Number | operator* (long int i) const |
|
Number | operator/ (long int i) const |
|
Number | operator+ (long int i) const |
|
Number | operator- (long int i) const |
|
Number | operator^ (long int i) const |
|
Number | operator&& (const Number &o) const |
|
Number | operator|| (const Number &o) const |
|
Number | operator! () const |
|
void | operator*= (const Number &o) |
|
void | operator/= (const Number &o) |
|
void | operator+= (const Number &o) |
|
void | operator-= (const Number &o) |
|
void | operator^= (const Number &o) |
|
void | operator*= (long int i) |
|
void | operator/= (long int i) |
|
void | operator+= (long int i) |
|
void | operator-= (long int i) |
|
void | operator^= (long int i) |
|
bool | operator== (const Number &o) const |
|
bool | operator!= (const Number &o) const |
|
bool | operator== (long int i) const |
|
bool | operator!= (long int i) const |
|
bool | bitAnd (const Number &o) |
|
bool | bitOr (const Number &o) |
|
bool | bitXor (const Number &o) |
|
bool | bitNot () |
|
bool | bitEqv (const Number &o) |
|
bool | shiftLeft (const Number &o) |
|
bool | shiftRight (const Number &o) |
|
bool | shift (const Number &o) |
|
bool | hasRealPart () const |
|
bool | hasImaginaryPart () const |
|
bool | isComplex () const |
|
bool | isInteger (IntegerType integer_type=INTEGER_TYPE_NONE) const |
|
Number | integer () const |
|
bool | isRational () const |
|
bool | isReal () const |
|
bool | isFraction () const |
|
bool | isZero () const |
|
bool | isNonZero () const |
|
bool | isOne () const |
|
bool | isTwo () const |
|
bool | isI () const |
|
bool | isMinusI () const |
|
bool | isMinusOne () const |
|
bool | isNegative () const |
|
bool | isNonNegative () const |
|
bool | isPositive () const |
|
bool | isNonPositive () const |
|
bool | realPartIsNegative () const |
|
bool | realPartIsNonNegative () const |
|
bool | realPartIsPositive () const |
|
bool | realPartIsNonZero () const |
|
bool | realPartIsRational () const |
|
bool | imaginaryPartIsNegative () const |
|
bool | imaginaryPartIsPositive () const |
|
bool | imaginaryPartIsNonZero () const |
|
bool | hasNegativeSign () const |
|
bool | hasPositiveSign () const |
|
bool | equalsZero () const |
|
bool | equals (const Number &o, bool allow_interval=false) const |
|
bool | equals (long int i) const |
|
int | equalsApproximately (const Number &o, int prec) const |
|
ComparisonResult | compare (const Number &o, bool ignore_imag=false) const |
|
ComparisonResult | compare (long int i) const |
|
ComparisonResult | compareApproximately (const Number &o, int prec=EQUALS_PRECISION_LOWEST) const |
|
ComparisonResult | compareImaginaryParts (const Number &o) const |
|
ComparisonResult | compareRealParts (const Number &o) const |
|
bool | isGreaterThan (const Number &o) const |
|
bool | isLessThan (const Number &o) const |
|
bool | isGreaterThanOrEqualTo (const Number &o) const |
|
bool | isLessThanOrEqualTo (const Number &o) const |
|
bool | isGreaterThan (long int i) const |
|
bool | isLessThan (long int i) const |
|
bool | isGreaterThanOrEqualTo (long int i) const |
|
bool | isLessThanOrEqualTo (long int i) const |
|
bool | isEven () const |
|
bool | numeratorIsGreaterThan (long int i) const |
|
bool | numeratorIsLessThan (long int i) const |
|
bool | numeratorEquals (long int i) const |
|
bool | denominatorIsGreaterThan (long int i) const |
|
bool | denominatorIsLessThan (long int i) const |
|
bool | denominatorEquals (long int i) const |
|
bool | denominatorIsGreater (const Number &o) const |
|
bool | denominatorIsLess (const Number &o) const |
|
bool | denominatorIsEqual (const Number &o) const |
|
bool | denominatorIsEven () const |
|
bool | denominatorIsTwo () const |
|
bool | numeratorIsEven () const |
|
bool | numeratorIsOne () const |
|
bool | numeratorIsMinusOne () const |
|
bool | isOdd () const |
|
int | integerLength () const |
|
bool | add (const Number &o) |
|
bool | add (long int i) |
|
bool | subtract (const Number &o) |
|
bool | subtract (long int i) |
|
bool | multiply (const Number &o) |
|
bool | multiply (long int i) |
|
bool | divide (const Number &o) |
|
bool | divide (long int i) |
|
bool | recip () |
|
bool | raise (const Number &o, bool try_exact=true) |
|
bool | sqrt () |
|
bool | cbrt () |
|
bool | root (const Number &o) |
|
bool | allroots (const Number &o, vector< Number > &roots) |
|
bool | exp10 (const Number &o) |
|
bool | exp2 (const Number &o) |
|
bool | exp10 () |
|
bool | exp2 () |
|
bool | square () |
|
bool | negate () |
|
void | setNegative (bool is_negative) |
|
bool | abs () |
|
bool | signum () |
|
bool | round (const Number &o) |
|
bool | floor (const Number &o) |
|
bool | ceil (const Number &o) |
|
bool | trunc (const Number &o) |
|
bool | mod (const Number &o) |
|
bool | isIntegerDivisible (const Number &o) const |
|
bool | isqrt () |
|
bool | isPerfectSquare () const |
|
bool | round () |
|
bool | floor () |
|
bool | ceil () |
|
bool | trunc () |
|
bool | frac () |
|
bool | rem (const Number &o) |
|
bool | smod (const Number &o) |
|
bool | irem (const Number &o) |
|
bool | irem (const Number &o, Number &q) |
|
bool | iquo (const Number &o) |
|
bool | iquo (unsigned long int i) |
|
bool | iquo (const Number &o, Number &r) |
|
int | getBoolean () const |
|
void | toBoolean () |
|
void | setTrue (bool is_true=true) |
|
void | setFalse () |
|
void | setLogicalNot () |
|
void | e (bool use_cached_number=true) |
|
void | pi () |
|
void | catalan () |
|
void | euler () |
|
bool | zeta () |
|
bool | gamma () |
|
bool | digamma () |
|
bool | airy () |
|
bool | erf () |
|
bool | erfc () |
|
bool | besselj (const Number &o) |
|
bool | bessely (const Number &o) |
|
bool | sin () |
|
bool | asin () |
|
bool | sinh () |
|
bool | asinh () |
|
bool | cos () |
|
bool | acos () |
|
bool | cosh () |
|
bool | acosh () |
|
bool | tan () |
|
bool | atan () |
|
bool | atan2 (const Number &o, bool allow_zero=false) |
|
bool | arg () |
|
bool | tanh () |
|
bool | atanh () |
|
bool | ln () |
|
bool | log (const Number &o) |
|
bool | exp () |
|
bool | lambertW () |
|
bool | gcd (const Number &o) |
|
bool | lcm (const Number &o) |
|
bool | factorial () |
|
bool | multiFactorial (const Number &o) |
|
bool | doubleFactorial () |
|
bool | binomial (const Number &m, const Number &k) |
|
bool | factorize (vector< Number > &factors) |
|
void | rand () |
|
void | intRand (const Number &ceil) |
|
bool | add (const Number &o, MathOperation op) |
|
string | printNumerator (int base=10, bool display_sign=true, BaseDisplay base_display=BASE_DISPLAY_NORMAL, bool lower_case=false) const |
|
string | printDenominator (int base=10, bool display_sign=true, BaseDisplay base_display=BASE_DISPLAY_NORMAL, bool lower_case=false) const |
|
string | printImaginaryNumerator (int base=10, bool display_sign=true, BaseDisplay base_display=BASE_DISPLAY_NORMAL, bool lower_case=false) const |
|
string | printImaginaryDenominator (int base=10, bool display_sign=true, BaseDisplay base_display=BASE_DISPLAY_NORMAL, bool lower_case=false) const |
|
string | print (const PrintOptions &po=default_print_options, const InternalPrintStruct &ips=top_ips) const |
|