My Project
|
Go to the source code of this file.
Data Structures | |
class | gmp_float |
class | gmp_complex |
gmp_complex numbers based on More... | |
Macros | |
#define | ZTOF 1 |
#define | QTOF 2 |
#define | RTOF 3 |
#define | CTOF 4 |
#define CTOF 4 |
Definition at line 21 of file mpr_complex.h.
#define QTOF 2 |
Definition at line 19 of file mpr_complex.h.
#define RTOF 3 |
Definition at line 20 of file mpr_complex.h.
#define ZTOF 1 |
Definition at line 18 of file mpr_complex.h.
|
inline |
Definition at line 305 of file mpr_complex.h.
Definition at line 321 of file mpr_complex.cc.
bool complexNearZero | ( | gmp_complex * | c, |
int | digits | ||
) |
Definition at line 765 of file mpr_complex.cc.
char * complexToStr | ( | gmp_complex & | c, |
const unsigned int | oprec, | ||
const coeffs | src | ||
) |
Definition at line 704 of file mpr_complex.cc.
Definition at line 338 of file mpr_complex.cc.
Definition at line 357 of file mpr_complex.cc.
Definition at line 578 of file mpr_complex.cc.
Definition at line 348 of file mpr_complex.cc.
Definition at line 343 of file mpr_complex.cc.
Definition at line 362 of file mpr_complex.cc.
gmp_float numberFieldToFloat | ( | number | num, |
int | src | ||
) |
Definition at line 438 of file mpr_complex.cc.
|
inline |
Definition at line 312 of file mpr_complex.h.
Definition at line 372 of file mpr_complex.cc.
|
inline |
Definition at line 255 of file mpr_complex.h.
|
inline |
Definition at line 247 of file mpr_complex.h.
|
inline |
Definition at line 251 of file mpr_complex.h.
|
inline |
Definition at line 259 of file mpr_complex.h.
|
inline |
Definition at line 273 of file mpr_complex.h.
|
inline |
Definition at line 281 of file mpr_complex.h.
|
inline |
|
inline |
Definition at line 269 of file mpr_complex.h.
|
inline |
Definition at line 277 of file mpr_complex.h.
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 two parts: the "output" part a and the "rest" part b.
According to the GMP-precision digits is recomputed to bits (basis 2). Two numbers a, b are equal if | a - b | < | a | * 0.1^digits . In this case we have a - b = 0 . The epsilon e is e=0.1^(digits+rest) with 1+e != 1, but 1+0.1*e = 1.
Definition at line 60 of file mpr_complex.cc.
Definition at line 333 of file mpr_complex.cc.
gmp_complex sqrt | ( | const gmp_complex & | x | ) |
Definition at line 676 of file mpr_complex.cc.