Changeset da408f in git for Singular/mpr_complex.cc
- Timestamp:
- Jul 8, 1999, 12:18:13 PM (24 years ago)
- Branches:
- (u'spielwiese', '8e0ad00ce244dfd0756200662572aef8402f13d5')
- Children:
- b719a30005f8bcbcca9d638b7908dda038ffee56
- Parents:
- 4deddb979be065737d63e926fc05f264a6b1078a
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Singular/mpr_complex.cc
r4deddb rda408f 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id: mpr_complex.cc,v 1.1 2 1999-07-02 16:43:19wenk Exp $ */4 /* $Id: mpr_complex.cc,v 1.13 1999-07-08 10:18:11 wenk Exp $ */ 5 5 6 6 /* … … 69 69 size_t bits= 1 + (size_t) (digits / (log(2)/log(10))); 70 70 bits= bits>64?bits:64; 71 // 72 gmp_float::setPrecision( bits+(bits/ 2) );71 //gmp_float::setPrecision( bits+EXTRABYTES*8 ); 72 gmp_float::setPrecision( bits+(bits/5) ); 73 73 gmp_float::setEqualBits( bits ); 74 74 gmp_output_digits= digits; … … 338 338 out= (char*)AllocL(*size); 339 339 memset(out,0,*size); 340 sprintf(out,"%s0.%se% d",csign,in+sign,(unsignedint)exponent);340 sprintf(out,"%s0.%se%s%d",csign,in+sign,exponent>=0?"+":"",(int)exponent); 341 341 // } 342 342 // else
Note: See TracChangeset
for help on using the changeset viewer.