![]() |
My Project
debian-1:4.1.2-p1+ds-2
|
#include "misc/auxiliary.h"#include "reporter/reporter.h"#include "coeffs/coeffs.h"#include "coeffs/numbers.h"#include "coeffs/mpr_complex.h"#include "coeffs/longrat.h"#include <cmath>Go to the source code of this file.
Macros | |
| #define | SR_HDL(A) ((long)(A)) |
| #define | SR_TO_INT(SR) (((long)SR) >> 2) |
| #define | SIGN_PLUS 1 |
| #define | SIGN_SPACE 2 |
| #define | SIGN_EMPTY 4 |
| #define | EXTRABYTES 4 |
| #define | DEFPREC 20 |
Variables | |
| VAR size_t | gmp_output_digits = DEFPREC |
| STATIC_VAR gmp_float * | gmpRel =NULL |
| STATIC_VAR gmp_float * | diff =NULL |
| #define DEFPREC 20 |
Definition at line 40 of file mpr_complex.cc.
| #define EXTRABYTES 4 |
Definition at line 38 of file mpr_complex.cc.
| #define SIGN_EMPTY 4 |
Definition at line 36 of file mpr_complex.cc.
| #define SIGN_PLUS 1 |
Definition at line 34 of file mpr_complex.cc.
| #define SIGN_SPACE 2 |
Definition at line 35 of file mpr_complex.cc.
Definition at line 31 of file mpr_complex.cc.
| #define SR_TO_INT | ( | SR | ) | (((long)SR) >> 2) |
Definition at line 32 of file mpr_complex.cc.
Definition at line 320 of file mpr_complex.cc.
| bool complexNearZero | ( | gmp_complex * | c, |
| int | digits | ||
| ) |
Definition at line 764 of file mpr_complex.cc.
| char* complexToStr | ( | gmp_complex & | c, |
| const unsigned int | oprec, | ||
| const coeffs | src | ||
| ) |
Definition at line 703 of file mpr_complex.cc.
Definition at line 337 of file mpr_complex.cc.
Definition at line 356 of file mpr_complex.cc.
Definition at line 577 of file mpr_complex.cc.
Definition at line 342 of file mpr_complex.cc.
Definition at line 361 of file mpr_complex.cc.
| char* nicifyFloatStr | ( | char * | in, |
| mp_exp_t | exponent, | ||
| size_t | oprec, | ||
| int * | size, | ||
| int | thesign | ||
| ) |
Definition at line 484 of file mpr_complex.cc.
| gmp_float numberFieldToFloat | ( | number | num, |
| int | cf | ||
| ) |
Definition at line 437 of file mpr_complex.cc.
Definition at line 371 of file mpr_complex.cc.
| gmp_complex operator* | ( | const gmp_complex & | a, |
| const gmp_complex & | b | ||
| ) |
Definition at line 178 of file mpr_complex.cc.
| gmp_complex operator+ | ( | const gmp_complex & | a, |
| const gmp_complex & | b | ||
| ) |
Definition at line 618 of file mpr_complex.cc.
Definition at line 166 of file mpr_complex.cc.
| gmp_complex operator- | ( | const gmp_complex & | a, |
| const gmp_complex & | b | ||
| ) |
Definition at line 622 of file mpr_complex.cc.
Definition at line 313 of file mpr_complex.cc.
Definition at line 172 of file mpr_complex.cc.
| gmp_complex operator/ | ( | const gmp_complex & | a, |
| const gmp_complex & | b | ||
| ) |
Definition at line 184 of file mpr_complex.cc.
Definition at line 236 of file mpr_complex.cc.
| 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 59 of file mpr_complex.cc.
Definition at line 332 of file mpr_complex.cc.
| gmp_complex sqrt | ( | const gmp_complex & | x | ) |
Definition at line 675 of file mpr_complex.cc.
Definition at line 326 of file mpr_complex.cc.
| STATIC_VAR gmp_float* diff =NULL |
Definition at line 44 of file mpr_complex.cc.
Definition at line 41 of file mpr_complex.cc.
| STATIC_VAR gmp_float* gmpRel =NULL |
Definition at line 43 of file mpr_complex.cc.