source: git/factory/int_cf.cc @ d8d9e9

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 $
6Revision 1.0  1996/05/17 10:59:46  stobbe
7Initial 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
19CanonicalForm
20InternalCF::lc()
21{
22    return CanonicalForm( copyObject() );
23}
24
25CanonicalForm
26InternalCF::LC()
27{
28    return CanonicalForm( copyObject() );
29}
30
31int
32InternalCF::degree()
33{
34    if ( isZero() )
35        return -1;
36    else
37        return 0;
38}
39
40CanonicalForm
41InternalCF::tailcoeff()
42{
43    return CanonicalForm( copyObject() );
44}
45
46int
47InternalCF::taildegree()
48{
49    return 0;
50}
51
52CanonicalForm
53InternalCF::coeff( int i )
54{
55    if ( i == 0 )
56        return CanonicalForm( copyObject() );
57    else
58        return 0;
59}
60
61int
62InternalCF::intval() const
63{
64    ASSERT1( 0, "illegal conversion: not implemented for class %s", this->classname() );
65    return 0;
66}
67
68int
69InternalCF::sign() const
70{
71    return 1;
72}
73
74InternalCF*
75InternalCF::invert()
76{
77    ASSERT1( 0, "internal factory error: not implemented for class %s", this->classname() );
78    return 0;
79}
80
81InternalCF*
82InternalCF::num()
83{
84    return copyObject();
85}
86
87InternalCF*
88InternalCF::den()
89{
90    return genOne();
91}
92
93int
94InternalCF::comparecoeff ( InternalCF* )
95{
96    ASSERT1( 0, "fatal error: not implemented for class %s", this->classname() );
97    return 0;
98}
99
100InternalCF*
101InternalCF::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.