36 mpf_init_set_si(
t, (
long)
v );
40 mpf_init_set_si(
t,
v );
44 mpf_init_set_d(
t,
v );
57 mpf_init_set(
t,
v.t );
77 mpf_set_d(
t, (
double) a );
82 mpf_set_d(
t, (
double) a );
111 mpf_pow_ui(
b, this->
t, (
unsigned long)exp );
124 {
return mpf_sgn(
t ); };
133 inline const mpf_t *
mpfp()
const {
return &
t; };
136 inline operator double() {
return mpf_get_d(
t ); };
137 inline operator double()
const {
return mpf_get_d(
t ); };
140 inline operator int() {
return (
int)mpf_get_d(
t ); };
141 inline operator int()
const {
return (
int)mpf_get_d(
t ); };
143 inline operator int()
const
144 {
if (mpf_fits_sint_p(
t))
145 {
return (
int)mpf_get_si(
t ); }
267 return (
b.real() == a.
real() ) && (
b.imag() == a.
imag() );
271 return ( a.
real() >
b.real() );
275 return ( a.
real() <
b.real() );
279 return ( a.
real() >=
b.real() );
283 return ( a.
real() <=
b.real() );
gmp_complex numbers based on
friend bool operator<(const gmp_complex &a, const gmp_complex &b)
gmp_complex(const mprfloat re, const mprfloat im=0.0)
friend gmp_complex operator*(const gmp_complex &a, const gmp_complex &b)
friend bool operator==(const gmp_complex &a, const gmp_complex &b)
gmp_complex(const gmp_complex &v)
friend gmp_complex operator+(const gmp_complex &a, const gmp_complex &b)
gmp_complex(const gmp_float re=0.0, const gmp_float im=0.0)
friend bool operator>(const gmp_complex &a, const gmp_complex &b)
friend bool operator<=(const gmp_complex &a, const gmp_complex &b)
gmp_complex & operator*=(const gmp_complex &a)
gmp_complex & operator/=(const gmp_complex &a)
friend gmp_complex operator-(const gmp_complex &a, const gmp_complex &b)
gmp_complex & operator=(const gmp_complex &a)
friend gmp_complex operator/(const gmp_complex &a, const gmp_complex &b)
gmp_complex(const long re, const long im)
gmp_complex & operator+=(const gmp_complex &a)
friend bool operator>=(const gmp_complex &a, const gmp_complex &b)
gmp_complex & operator-=(const gmp_complex &a)
void setFromStr(const char *in)
gmp_float(const mprfloat v)
gmp_float operator^(const int exp) const
friend gmp_float operator*(const gmp_float &a, const gmp_float &b)
friend bool operator<(const gmp_float &a, const gmp_float &b)
friend bool operator<=(const gmp_float &a, const gmp_float &b)
gmp_float(const gmp_float &v)
gmp_float & operator-=(const gmp_float &a)
gmp_float & operator/=(const gmp_float &a)
friend gmp_float operator-(const gmp_float &a, const gmp_float &b)
friend gmp_float operator+(const gmp_float &a, const gmp_float &b)
gmp_float & operator+=(const gmp_float &a)
gmp_float & operator=(const gmp_float &a)
friend bool operator==(const gmp_float &a, const gmp_float &b)
const mpf_t * mpfp() const
gmp_float & operator*=(const gmp_float &a)
friend gmp_float operator/(const gmp_float &a, const gmp_float &b)
friend bool operator>=(const gmp_float &a, const gmp_float &b)
friend bool operator>(const gmp_float &a, const gmp_float &b)
static FORCE_INLINE BOOLEAN nCoeff_is_long_C(const coeffs r)
const Variable & v
< [in] a sqrfree bivariate poly
bool operator<(const gmp_complex &a, const gmp_complex &b)
bool operator==(const gmp_complex &a, const gmp_complex &b)
gmp_float max(const gmp_float &, const gmp_float &)
char * complexToStr(gmp_complex &c, const unsigned int oprec, const coeffs src)
gmp_float exp(const gmp_float &)
gmp_float hypot(const gmp_float &, const gmp_float &)
gmp_complex operator/(const gmp_complex &a, const gmp_float b_d)
bool operator>(const gmp_complex &a, const gmp_complex &b)
bool operator<=(const gmp_complex &a, const gmp_complex &b)
gmp_float log(const gmp_float &)
gmp_complex operator+(const gmp_complex &a, const gmp_float b_d)
char * floatToStr(const gmp_float &r, const unsigned int oprec)
bool complexNearZero(gmp_complex *c, int digits)
gmp_complex operator*(const gmp_complex &a, const gmp_float b_d)
gmp_float cos(const gmp_float &)
gmp_float sqrt(const gmp_float &)
gmp_float numberToFloat(number num, const coeffs src)
bool operator>=(const gmp_complex &a, const gmp_complex &b)
gmp_complex numberToComplex(number num, const coeffs r)
gmp_float numberFieldToFloat(number num, int src)
gmp_complex operator-(const gmp_complex &a, const gmp_float b_d)
gmp_float abs(const gmp_float &)
gmp_float sin(const gmp_float &)
void setGMPFloatDigits(size_t digits, size_t rest)
Set size of mantissa digits - the number of output digits (basis 10) the size of mantissa consists of...
The main handler for Singular numbers which are suitable for Singular polynomials.