![]() |
My Project
UNKNOWN_GIT_VERSION
|
#include "misc/auxiliary.h"
#include "omalloc/omalloc.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 | |
size_t | gmp_output_digits = DEFPREC |
static gmp_float * | gmpRel =NULL |
static gmp_float * | diff =NULL |
#define DEFPREC 20 |
Definition at line 42 of file mpr_complex.cc.
#define EXTRABYTES 4 |
Definition at line 40 of file mpr_complex.cc.
#define SIGN_EMPTY 4 |
Definition at line 38 of file mpr_complex.cc.
#define SIGN_PLUS 1 |
Definition at line 36 of file mpr_complex.cc.
#define SIGN_SPACE 2 |
Definition at line 37 of file mpr_complex.cc.
Definition at line 33 of file mpr_complex.cc.
#define SR_TO_INT | ( | SR | ) | (((long)SR) >> 2) |
Definition at line 34 of file mpr_complex.cc.
Definition at line 322 of file mpr_complex.cc.
bool complexNearZero | ( | gmp_complex * | c, |
int | digits | ||
) |
Definition at line 766 of file mpr_complex.cc.
char* complexToStr | ( | gmp_complex & | c, |
const unsigned int | oprec, | ||
const coeffs | src | ||
) |
Definition at line 705 of file mpr_complex.cc.
Definition at line 339 of file mpr_complex.cc.
Definition at line 358 of file mpr_complex.cc.
Definition at line 579 of file mpr_complex.cc.
Definition at line 344 of file mpr_complex.cc.
Definition at line 363 of file mpr_complex.cc.
char* nicifyFloatStr | ( | char * | in, |
mp_exp_t | exponent, | ||
size_t | oprec, | ||
int * | size, | ||
int | thesign | ||
) |
Definition at line 486 of file mpr_complex.cc.
gmp_float numberFieldToFloat | ( | number | num, |
int | cf | ||
) |
Definition at line 439 of file mpr_complex.cc.
Definition at line 373 of file mpr_complex.cc.
gmp_complex operator* | ( | const gmp_complex & | a, |
const gmp_complex & | b | ||
) |
Definition at line 180 of file mpr_complex.cc.
gmp_complex operator+ | ( | const gmp_complex & | a, |
const gmp_complex & | b | ||
) |
Definition at line 620 of file mpr_complex.cc.
Definition at line 168 of file mpr_complex.cc.
gmp_complex operator- | ( | const gmp_complex & | a, |
const gmp_complex & | b | ||
) |
Definition at line 624 of file mpr_complex.cc.
Definition at line 315 of file mpr_complex.cc.
Definition at line 174 of file mpr_complex.cc.
gmp_complex operator/ | ( | const gmp_complex & | a, |
const gmp_complex & | b | ||
) |
Definition at line 186 of file mpr_complex.cc.
Definition at line 238 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 61 of file mpr_complex.cc.
Definition at line 334 of file mpr_complex.cc.
gmp_complex sqrt | ( | const gmp_complex & | x | ) |
Definition at line 677 of file mpr_complex.cc.
Definition at line 328 of file mpr_complex.cc.
Definition at line 46 of file mpr_complex.cc.
size_t gmp_output_digits = DEFPREC |
Definition at line 43 of file mpr_complex.cc.
Definition at line 45 of file mpr_complex.cc.