FastPolyEval  1.0
Fast Evaluation of Real and Complex Polynomials
Functions
debug.h File Reference

A few basic tool for easy debug when usinf MPFR. More...

Go to the source code of this file.

Functions

char * pm (mpfr_t x, int dig)
 Return a string containing the value of x with dig digits. More...
 
char * pc (comp z, int dig)
 Return a string containing the value of x with dig digits. More...
 
char * pcf (compf z)
 Return a string containing the value of z. More...
 

Detailed Description

A few basic tool for easy debug when usinf MPFR.

Definition in file debug.h.

Function Documentation

◆ pc()

char* pc ( comp  z,
int  dig 
)

Return a string containing the value of x with dig digits.

The format is that of a CSV file line, the real and imaginary components are separated by a comma.

Warning
The user is responsible to free the memory containg the results.
Parameters
za complex number, with MPFR real and imaginary parts
digthe number of digits to print
Returns
the string containing the value of z, NULL if some error occurred

◆ pcf()

char* pcf ( compf  z)

Return a string containing the value of z.

The format is that of a CSV file line, the real and imaginary components are separated by a comma.

Warning
The user is responsible to free the memory containg the results.
Parameters
za complex number, with machine numbers real and imaginary parts
Returns
the string containing the value of z, NULL if some error occurred

◆ pm()

char* pm ( mpfr_t  x,
int  dig 
)

Return a string containing the value of x with dig digits.

Warning
The user is responsible to free the memory containg the results.
Parameters
xa real number, MPFR
digthe number of digits to print
Returns
the string containing the value of z, NULL if some error occurred