version 1.2, 2018/10/01 05:49:06 |
version 1.3, 2019/11/12 10:53:23 |
|
|
* OF THE SOFTWARE HAS BEEN DEVELOPED BY A THIRD PARTY, THE THIRD PARTY |
* OF THE SOFTWARE HAS BEEN DEVELOPED BY A THIRD PARTY, THE THIRD PARTY |
* DEVELOPER SHALL HAVE NO LIABILITY IN CONNECTION WITH THE USE, |
* DEVELOPER SHALL HAVE NO LIABILITY IN CONNECTION WITH THE USE, |
* PERFORMANCE OR NON-PERFORMANCE OF THE SOFTWARE. |
* PERFORMANCE OR NON-PERFORMANCE OF THE SOFTWARE. |
* $OpenXM: OpenXM_contrib2/asir2018/io/spexpr.c,v 1.1 2018/09/19 05:45:08 noro Exp $ |
* $OpenXM: OpenXM_contrib2/asir2018/io/spexpr.c,v 1.2 2018/10/01 05:49:06 noro Exp $ |
*/ |
*/ |
#include "ca.h" |
#include "ca.h" |
#include "al.h" |
#include "al.h" |
Line 116 extern int hideargs; |
|
Line 116 extern int hideargs; |
|
#define PRINTFNODENODE sprintfnodenode |
#define PRINTFNODENODE sprintfnodenode |
#define PRINTFARGS sprintfargs |
#define PRINTFARGS sprintfargs |
|
|
|
#if defined(INTERVAL) |
|
#define PRINTBF4ITV sprintbf4itv |
|
#endif |
|
|
#include "pexpr_body.c" |
#include "pexpr_body.c" |
|
|
/* special functions for string output */ |
/* special functions for string output */ |
Line 138 void sprintbf(BF a) |
|
Line 142 void sprintbf(BF a) |
|
mpfr_free_str(s); |
mpfr_free_str(s); |
} |
} |
|
|
|
#if defined(INTERVAL) |
|
void sprintbf4itv(BF a) |
|
{ |
|
int dprec; |
|
char fbuf[BUFSIZ]; |
|
char *s; |
|
dprec = a->body->_mpfr_prec*0.30103; |
|
dprec += 1; |
|
sprintf(fbuf,"%%.%dR%c",dprec,(double_output==1)?'f':(double_output==2)?'e':'g'); |
|
mpfr_asprintf(&s,fbuf,a->body); |
|
TAIL PUTS(s); |
|
mpfr_free_str(s); |
|
} |
|
#endif |
|
|
void sprintmpz(mpz_t z) |
void sprintmpz(mpz_t z) |
{ |
{ |
char *s; |
char *s; |
Line 154 void sprintz(Z n) |
|
Line 173 void sprintz(Z n) |
|
{ |
{ |
sprintmpz(BDY(n)); |
sprintmpz(BDY(n)); |
} |
} |
|
|