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) ((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 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.
Definition at line 32 of file mpr_complex.cc.
#define SR_TO_INT | ( | SR | ) | (((long)SR) >> 2) |
Definition at line 33 of file mpr_complex.cc.
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.
char * nicifyFloatStr | ( | char * | in, |
mp_exp_t | exponent, | ||
size_t | oprec, | ||
int * | size, | ||
int | thesign | ||
) |
Definition at line 485 of file mpr_complex.cc.
gmp_float numberFieldToFloat | ( | number | num, |
int | cf | ||
) |
Definition at line 438 of file mpr_complex.cc.
Definition at line 372 of file mpr_complex.cc.
gmp_complex operator* | ( | const gmp_complex & | a, |
const gmp_complex & | b | ||
) |
Definition at line 627 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 619 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 623 of file mpr_complex.cc.
Definition at line 314 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 294 of file mpr_complex.cc.
Definition at line 237 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 333 of file mpr_complex.cc.
gmp_complex sqrt | ( | const gmp_complex & | x | ) |
Definition at line 676 of file mpr_complex.cc.
Definition at line 327 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.