version 1.39, 2005/11/16 23:42:54 |
version 1.42, 2017/08/31 02:36:21 |
|
|
* 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/asir2000/io/pexpr.c,v 1.38 2004/12/17 03:09:08 noro Exp $ |
* $OpenXM: OpenXM_contrib2/asir2000/io/pexpr.c,v 1.41 2015/08/20 08:53:05 ohara Exp $ |
*/ |
*/ |
#include "ca.h" |
#include "ca.h" |
#include "al.h" |
#include "al.h" |
|
|
#define FPRINT |
#define FPRINT |
#endif |
#endif |
|
|
#if defined(PARI) |
|
#include "genpari.h" |
|
#endif |
|
|
|
extern int outputstyle; |
extern int outputstyle; |
|
|
FILE *asir_out; |
FILE *asir_out; |
Line 101 int printmode = PRINTF_G; |
|
Line 97 int printmode = PRINTF_G; |
|
#define PRINTSTR printstr |
#define PRINTSTR printstr |
#define PRINTCOMP printcomp |
#define PRINTCOMP printcomp |
#define PRINTDP printdp |
#define PRINTDP printdp |
|
#define PRINTDPM printdpm |
#define PRINTUI printui |
#define PRINTUI printui |
#define PRINTGF2MAT printgf2mat |
#define PRINTGF2MAT printgf2mat |
#define PRINTGFMMAT printgfmmat |
#define PRINTGFMMAT printgfmmat |
|
|
return (mmono(COEF(DC(p)))); |
return (mmono(COEF(DC(p)))); |
} |
} |
|
|
#if defined(PARI) |
void printbf(BF a) |
void printbf(a) |
|
BF a; |
|
{ |
{ |
sor(a->body,double_output ? 'f' : 'g',-1,0); |
int dprec; |
|
char fbuf[BUFSIZ]; |
|
char *s; |
|
dprec = (a->body->_mpfr_prec)*0.30103; |
|
if ( !dprec ) dprec = 1; |
|
sprintf(fbuf,"%%.%dR%c",dprec,double_output?'f':'g'); |
|
mpfr_asprintf(&s,fbuf,a->body); |
|
TAIL PUTS(s); |
|
mpfr_free_str(s); |
} |
} |
#endif |
|
|
|