fieker-DuValspielwiese
Last change
on this file since 160f8f7 was
9d7aaa,
checked in by Jens Schmidt <schmidt@…>, 27 years ago
|
#include <config.h> added
git-svn-id: file:///usr/local/Singular/svn/trunk@155 2c84dea3-7e68-4137-9b89-c4e89433aadc
|
-
Property mode set to
100644
|
File size:
1.6 KB
|
Line | |
---|
1 | // emacs edit mode for this file is -*- C++ -*- |
---|
2 | // $Id: int_cf.cc,v 1.2 1997-04-15 09:10:16 schmidt Exp $ |
---|
3 | |
---|
4 | /* |
---|
5 | $Log: not supported by cvs2svn $ |
---|
6 | Revision 1.1 1997/03/27 10:03:08 schmidt |
---|
7 | debug output changed to ASSERT |
---|
8 | |
---|
9 | Revision 1.0 1996/05/17 10:59:46 stobbe |
---|
10 | Initial revision |
---|
11 | |
---|
12 | */ |
---|
13 | |
---|
14 | #include <config.h> |
---|
15 | |
---|
16 | #include "assert.h" |
---|
17 | |
---|
18 | #include "cf_defs.h" |
---|
19 | #include "int_cf.h" |
---|
20 | #include "canonicalform.h" |
---|
21 | |
---|
22 | |
---|
23 | CanonicalForm |
---|
24 | InternalCF::lc() |
---|
25 | { |
---|
26 | return CanonicalForm( copyObject() ); |
---|
27 | } |
---|
28 | |
---|
29 | CanonicalForm |
---|
30 | InternalCF::LC() |
---|
31 | { |
---|
32 | return CanonicalForm( copyObject() ); |
---|
33 | } |
---|
34 | |
---|
35 | int |
---|
36 | InternalCF::degree() |
---|
37 | { |
---|
38 | if ( isZero() ) |
---|
39 | return -1; |
---|
40 | else |
---|
41 | return 0; |
---|
42 | } |
---|
43 | |
---|
44 | CanonicalForm |
---|
45 | InternalCF::tailcoeff() |
---|
46 | { |
---|
47 | return CanonicalForm( copyObject() ); |
---|
48 | } |
---|
49 | |
---|
50 | int |
---|
51 | InternalCF::taildegree() |
---|
52 | { |
---|
53 | return 0; |
---|
54 | } |
---|
55 | |
---|
56 | CanonicalForm |
---|
57 | InternalCF::coeff( int i ) |
---|
58 | { |
---|
59 | if ( i == 0 ) |
---|
60 | return CanonicalForm( copyObject() ); |
---|
61 | else |
---|
62 | return 0; |
---|
63 | } |
---|
64 | |
---|
65 | int |
---|
66 | InternalCF::intval() const |
---|
67 | { |
---|
68 | ASSERT1( 0, "illegal conversion: not implemented for class %s", this->classname() ); |
---|
69 | return 0; |
---|
70 | } |
---|
71 | |
---|
72 | int |
---|
73 | InternalCF::sign() const |
---|
74 | { |
---|
75 | return 1; |
---|
76 | } |
---|
77 | |
---|
78 | InternalCF* |
---|
79 | InternalCF::invert() |
---|
80 | { |
---|
81 | ASSERT1( 0, "internal factory error: not implemented for class %s", this->classname() ); |
---|
82 | return 0; |
---|
83 | } |
---|
84 | |
---|
85 | InternalCF* |
---|
86 | InternalCF::num() |
---|
87 | { |
---|
88 | return copyObject(); |
---|
89 | } |
---|
90 | |
---|
91 | InternalCF* |
---|
92 | InternalCF::den() |
---|
93 | { |
---|
94 | return genOne(); |
---|
95 | } |
---|
96 | |
---|
97 | int |
---|
98 | InternalCF::comparecoeff ( InternalCF* ) |
---|
99 | { |
---|
100 | ASSERT1( 0, "fatal error: not implemented for class %s", this->classname() ); |
---|
101 | return 0; |
---|
102 | } |
---|
103 | |
---|
104 | InternalCF* |
---|
105 | InternalCF::sqrt() |
---|
106 | { |
---|
107 | ASSERT1( 0, "fatal error: not implemented for class %s", this->classname() ); |
---|
108 | return 0; |
---|
109 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.