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