version 1.37, 2004/07/13 07:59:54 |
version 1.40, 2015/08/04 06:20:45 |
|
|
* 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.36 2004/05/14 06:02:54 noro Exp $ |
* $OpenXM: OpenXM_contrib2/asir2000/io/pexpr.c,v 1.39 2005/11/16 23:42:54 noro 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; |
|
|
int real_binary; |
int real_binary; |
int print_quote; |
int print_quote; |
int hideargs; |
int hideargs; |
extern int asir_texmacs; |
|
extern FUNC user_print_function; |
extern FUNC user_print_function; |
#if 0 |
#if 0 |
int printmode = PRINTF_E; |
int printmode = PRINTF_E; |
Line 108 int printmode = PRINTF_G; |
|
Line 103 int printmode = PRINTF_G; |
|
#define PRINTBYTEARRAY printbytearray |
#define PRINTBYTEARRAY printbytearray |
#define PRINTQUOTE printquote |
#define PRINTQUOTE printquote |
#define PRINTQUOTEARG printquotearg |
#define PRINTQUOTEARG printquotearg |
|
#define PRINTNBP printnbp |
#define PRINTERR printerr |
#define PRINTERR printerr |
#define PRINTLF printlf |
#define PRINTLF printlf |
#define PRINTLOP printlop |
#define PRINTLOP printlop |
|
|
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]; |
|
dprec = (a->body->_mpfr_prec)*0.30103; |
|
if ( !dprec ) dprec = 1; |
|
sprintf(fbuf,"%%.%dR%c",dprec,double_output?'f':'g'); |
|
mpfr_fprintf(OUT,fbuf,a->body); |
} |
} |
#endif |
|
|
|