[BACK]Return to spexpr.c CVS log [TXT][DIR] Up to [local] / OpenXM_contrib2 / asir2000 / io

Diff for /OpenXM_contrib2/asir2000/io/spexpr.c between version 1.36 and 1.37

version 1.36, 2005/11/16 23:42:54 version 1.37, 2015/08/04 06:20:45
Line 44 
Line 44 
  * 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/spexpr.c,v 1.35 2004/12/18 16:50:10 saito Exp $   * $OpenXM: OpenXM_contrib2/asir2000/io/spexpr.c,v 1.36 2005/11/16 23:42:54 noro Exp $
 */  */
 #include "ca.h"  #include "ca.h"
 #include "al.h"  #include "al.h"
Line 56 
Line 56 
 #define SPRINT  #define SPRINT
 #endif  #endif
   
 #if defined(PARI)  
 #include "genpari.h"  
 #endif  
   
 extern int outputstyle;  extern int outputstyle;
   
 static char *buf;  static char *buf;
Line 128  char *s;
Line 124  char *s;
         s[0] = 0; buf = s;          s[0] = 0; buf = s;
 }  }
   
 #if defined(PARI)  
 void myoutbrute(g)  
 GEN g;  
 {  
 # if PARI_VERSION_CODE > 131588  
         brute(g, 'f', -1);  
 # else  
         bruteall(g,'f',-1,1);  
 # endif  
 }  
   
 void sprintbf(BF a)  void sprintbf(BF a)
 {  {
         char *str;          int dprec;
         char *GENtostr0();          char fbuf[BUFSIZ];
           dprec = a->body->_mpfr_prec*0.30103;
         if ( double_output ) {          sprintf(fbuf,"%%.%dR%c",dprec,double_output?'f':'g');
                 str = GENtostr0(a->body,myoutbrute);          mpfr_sprintf(OUT,fbuf,a->body);
         } else {  
                 str = GENtostr(a->body);  
         }  
         TAIL PRINTF(OUT,"%s",str);  
         free(str);  
 }  }
 #endif  
   

Legend:
Removed from v.1.36  
changed lines
  Added in v.1.37

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>