version 1.2, 2000/01/16 07:55:41 |
version 1.3, 2001/05/04 01:06:25 |
|
|
/* $OpenXM$ */ |
/* $OpenXM: OpenXM/src/kan96xx/Kan/rat.c,v 1.2 2000/01/16 07:55:41 takayama Exp $ */ |
|
|
/* rat.c: rational functions */ |
/* rat.c: rational functions */ |
#include <stdio.h> |
#include <stdio.h> |
Line 11 static void errorRationalFunction(char *str); |
|
Line 11 static void errorRationalFunction(char *str); |
|
static void warningRationalFunction(char *str); |
static void warningRationalFunction(char *str); |
|
|
struct object KnewRationalFunction0(op1,op2) |
struct object KnewRationalFunction0(op1,op2) |
objectp op1; |
objectp op1; |
objectp op2; |
objectp op2; |
{ |
{ |
struct object rob; |
struct object rob; |
rob.tag = SrationalFunction; |
rob.tag = SrationalFunction; |
|
|
|
|
|
|
int KisZeroObject(op) |
int KisZeroObject(op) |
objectp op; |
objectp op; |
{ |
{ |
switch(op->tag) { |
switch(op->tag) { |
case Spoly: |
case Spoly: |
|
|
} |
} |
|
|
objectp copyObjectp(op) |
objectp copyObjectp(op) |
objectp op; |
objectp op; |
{ |
{ |
objectp rop; |
objectp rop; |
rop = newObject(); |
rop = newObject(); |
|
|
} |
} |
|
|
void errorRationalFunction(str) |
void errorRationalFunction(str) |
char *str; |
char *str; |
{ |
{ |
fprintf(stderr,"Error(rat.c): %s\n",str); |
fprintf(stderr,"Error(rat.c): %s\n",str); |
exit(20); |
exit(20); |
} |
} |
|
|
void warningRationalFunction(str) |
void warningRationalFunction(str) |
char *str; |
char *str; |
{ |
{ |
fprintf(stderr,"Warning(rat.c): %s\n",str); |
fprintf(stderr,"Warning(rat.c): %s\n",str); |
} |
} |