Changeset 6e5e20 in git
- Timestamp:
- Jun 27, 2000, 2:07:01 PM (24 years ago)
- Branches:
- (u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
- Children:
- 527ac8fed1f0865e3893374eefa5ab848c9fb0fa
- Parents:
- e80ff56d9a4fa8c9359e3fdd5d66f6093d5f54b8
- Location:
- Singular
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
Singular/gnumpc.cc
re80ff56 r6e5e20 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id: gnumpc.cc,v 1.1 0 1999-11-15 17:20:03 obachmanExp $ */4 /* $Id: gnumpc.cc,v 1.11 2000-06-27 12:07:00 pohl Exp $ */ 5 5 /* 6 6 * ABSTRACT: computations with GMP complex floating-point numbers … … 26 26 static number ngcMapQ(number from) 27 27 { 28 gmp_complex *res= new gmp_complex();29 28 if ( from != NULL ) 30 29 { 31 *res= numberFieldToFloat(from,QTOF); 32 } 33 return (number)res; 30 gmp_complex *res=new gmp_complex(numberFieldToFloat(from,QTOF)); 31 return (number)res; 32 } 33 else 34 return NULL; 34 35 } 35 36 … … 57 58 void ngcNew (number * r) 58 59 { 59 gmp_complex* n= new gmp_complex( ); 60 *r=(number)n; 60 *r=NULL; 61 61 } 62 62 -
Singular/gnumpfl.cc
re80ff56 r6e5e20 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id: gnumpfl.cc,v 1.1 3 2000-06-21 07:35:41 pohl Exp $ */4 /* $Id: gnumpfl.cc,v 1.14 2000-06-27 12:07:01 pohl Exp $ */ 5 5 /* 6 6 * ABSTRACT: computations with GMP floating-point numbers … … 34 34 static number ngfMapQ(number from) 35 35 { 36 gmp_float *res= new gmp_float();37 36 if ( from != NULL ) 38 37 { 39 *res= numberFieldToFloat(from,QTOF); 40 } 41 return (number)res; 38 gmp_float *res=new gmp_float(numberFieldToFloat(from,QTOF)); 39 return (number)res; 40 } 41 else 42 return NULL; 42 43 } 43 44
Note: See TracChangeset
for help on using the changeset viewer.