Changeset 36f915 in git
- Timestamp:
- Apr 28, 2010, 1:06:50 PM (13 years ago)
- Branches:
- (u'spielwiese', '8d54773d6c9e2f1d2593a28bc68b7eeab54ed529')
- Children:
- 77e585d91301adb39a7f4d69c34f795b82ace33a
- Parents:
- e973a0ce6d1ac6e92ec28ec5a04c9b8d43229ab5
- git-author:
- Mohamed Barakat <mohamed.barakat@rwth-aachen.de>2010-04-28 13:06:50+02:00
- git-committer:
- Mohamed Barakat <mohamed.barakat@rwth-aachen.de>2011-11-09 11:49:01+01:00
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
coeffs/longrat0.cc
re973a0 r36f915 10 10 #include <stdio.h> 11 11 #include <string.h> 12 #include <kernel/mod2.h>13 #include <kernel/structs.h>14 #include <omalloc/omalloc.h>15 #include <kernel/febase.h>16 #include <kernel/longrat.h>17 #include <kernel/numbers.h>12 #include "config.h" 13 #include "coeffs.h" 14 #include "omalloc.h" 15 #include "output.h" 16 #include "longrat.h" 17 #include "numbers.h" 18 18 19 19 #define SR_HDL(A) ((long)(A)) … … 48 48 * extracts the number a from s, returns the rest 49 49 */ 50 const char * nlRead (const char *s, number *a )50 const char * nlRead (const char *s, number *a, const coeffs r) 51 51 { 52 52 if (*s<'0' || *s>'9') … … 108 108 * write a rational number 109 109 */ 110 void nlWrite (number &a, const ringr)110 void nlWrite (number &a, const coeffs r) 111 111 { 112 112 char *s,*z; … … 123 123 if (a->s==0) 124 124 { 125 nlNormalize(a );125 nlNormalize(a,r); 126 126 nlWrite(a,r); 127 127 return;
Note: See TracChangeset
for help on using the changeset viewer.