![]() |
#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 "longrat.h"
#include <math.h>
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 43 of file mpr_complex.cc.
#define EXTRABYTES 4 |
Definition at line 41 of file mpr_complex.cc.
#define SIGN_EMPTY 4 |
Definition at line 39 of file mpr_complex.cc.
#define SIGN_PLUS 1 |
Definition at line 37 of file mpr_complex.cc.
#define SIGN_SPACE 2 |
Definition at line 38 of file mpr_complex.cc.
Definition at line 34 of file mpr_complex.cc.
#define SR_TO_INT | ( | SR | ) | (((long)SR) >> 2) |
Definition at line 35 of file mpr_complex.cc.
Definition at line 323 of file mpr_complex.cc.
bool complexNearZero | ( | gmp_complex * | c, |
int | digits | ||
) |
Definition at line 778 of file mpr_complex.cc.
char* complexToStr | ( | gmp_complex & | c, |
const unsigned int | oprec, | ||
const coeffs | src | ||
) |
Definition at line 717 of file mpr_complex.cc.
Definition at line 340 of file mpr_complex.cc.
Definition at line 359 of file mpr_complex.cc.
Definition at line 591 of file mpr_complex.cc.
Definition at line 350 of file mpr_complex.cc.
Definition at line 345 of file mpr_complex.cc.
Definition at line 364 of file mpr_complex.cc.
char* nicifyFloatStr | ( | char * | in, |
mp_exp_t | exponent, | ||
size_t | oprec, | ||
int * | size, | ||
int | thesign | ||
) |
Definition at line 498 of file mpr_complex.cc.
Definition at line 440 of file mpr_complex.cc.
Definition at line 374 of file mpr_complex.cc.
Definition at line 181 of file mpr_complex.cc.
gmp_complex operator* | ( | const gmp_complex & | a, |
const gmp_complex & | b | ||
) |
Definition at line 640 of file mpr_complex.cc.
Definition at line 169 of file mpr_complex.cc.
gmp_complex operator+ | ( | const gmp_complex & | a, |
const gmp_complex & | b | ||
) |
Definition at line 632 of file mpr_complex.cc.
Definition at line 175 of file mpr_complex.cc.
Definition at line 316 of file mpr_complex.cc.
gmp_complex operator- | ( | const gmp_complex & | a, |
const gmp_complex & | b | ||
) |
Definition at line 636 of file mpr_complex.cc.
Definition at line 187 of file mpr_complex.cc.
gmp_complex operator/ | ( | const gmp_complex & | a, |
const gmp_complex & | b | ||
) |
Definition at line 645 of file mpr_complex.cc.
Definition at line 296 of file mpr_complex.cc.
Definition at line 308 of file mpr_complex.cc.
Definition at line 239 of file mpr_complex.cc.
Definition at line 290 of file mpr_complex.cc.
Definition at line 302 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 62 of file mpr_complex.cc.
Definition at line 335 of file mpr_complex.cc.
Definition at line 329 of file mpr_complex.cc.
gmp_complex sqrt | ( | const gmp_complex & | x | ) |
Definition at line 689 of file mpr_complex.cc.
Definition at line 47 of file mpr_complex.cc.
size_t gmp_output_digits = DEFPREC |
Definition at line 44 of file mpr_complex.cc.
Definition at line 46 of file mpr_complex.cc.