![]() |
My Project
|
#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) |
| #define | SR_TO_INT(SR) |
| #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 41 of file mpr_complex.cc.
| #define EXTRABYTES 4 |
Definition at line 39 of file mpr_complex.cc.
| #define SIGN_EMPTY 4 |
Definition at line 37 of file mpr_complex.cc.
| #define SIGN_PLUS 1 |
Definition at line 35 of file mpr_complex.cc.
| #define SIGN_SPACE 2 |
Definition at line 36 of file mpr_complex.cc.
| #define SR_HDL | ( | A | ) |
Definition at line 32 of file mpr_complex.cc.
| #define SR_TO_INT | ( | SR | ) |
Definition at line 33 of file mpr_complex.cc.
Definition at line 313 of file mpr_complex.cc.
| bool complexNearZero | ( | gmp_complex * | c, |
| int | digits ) |
Definition at line 754 of file mpr_complex.cc.
| char * complexToStr | ( | gmp_complex & | c, |
| const unsigned int | oprec, | ||
| const coeffs | src ) |
Definition at line 693 of file mpr_complex.cc.
Definition at line 330 of file mpr_complex.cc.
Definition at line 349 of file mpr_complex.cc.
Definition at line 567 of file mpr_complex.cc.
Definition at line 340 of file mpr_complex.cc.
Definition at line 335 of file mpr_complex.cc.
Definition at line 354 of file mpr_complex.cc.
| char * nicifyFloatStr | ( | char * | in, |
| mp_exp_t | exponent, | ||
| size_t | oprec, | ||
| int * | size, | ||
| int | thesign ) |
Definition at line 477 of file mpr_complex.cc.
| gmp_float numberFieldToFloat | ( | number | num, |
| int | cf ) |
Definition at line 430 of file mpr_complex.cc.
Definition at line 364 of file mpr_complex.cc.
| gmp_complex operator* | ( | const gmp_complex & | a, |
| const gmp_complex & | b ) |
Definition at line 616 of file mpr_complex.cc.
Definition at line 179 of file mpr_complex.cc.
| gmp_complex operator+ | ( | const gmp_complex & | a, |
| const gmp_complex & | b ) |
Definition at line 608 of file mpr_complex.cc.
Definition at line 167 of file mpr_complex.cc.
| gmp_complex operator- | ( | const gmp_complex & | a, |
| const gmp_complex & | b ) |
Definition at line 612 of file mpr_complex.cc.
Definition at line 306 of file mpr_complex.cc.
Definition at line 173 of file mpr_complex.cc.
| gmp_complex operator/ | ( | const gmp_complex & | a, |
| const gmp_complex & | b ) |
Definition at line 185 of file mpr_complex.cc.
Definition at line 292 of file mpr_complex.cc.
Definition at line 300 of file mpr_complex.cc.
Definition at line 237 of file mpr_complex.cc.
Definition at line 288 of file mpr_complex.cc.
Definition at line 296 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 60 of file mpr_complex.cc.
Definition at line 325 of file mpr_complex.cc.
| gmp_complex sqrt | ( | const gmp_complex & | x | ) |
Definition at line 665 of file mpr_complex.cc.
Definition at line 319 of file mpr_complex.cc.
| STATIC_VAR gmp_float* diff =NULL |
Definition at line 45 of file mpr_complex.cc.
Definition at line 42 of file mpr_complex.cc.
| STATIC_VAR gmp_float* gmpRel =NULL |
Definition at line 44 of file mpr_complex.cc.