source: git/factory/int_cf.cc @ 160f8f7

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