NZMATH  1.2.0
About: NZMATH is a Python based number theory oriented calculation system.
  Fossies Dox: NZMATH-1.2.0.tar.gz  ("inofficial" and yet experimental doxygen-generated source code documentation)  

nzmath.poly.ratfunc.RationalFunction Class Reference
Inheritance diagram for nzmath.poly.ratfunc.RationalFunction:
[legend]
Collaboration diagram for nzmath.poly.ratfunc.RationalFunction:
[legend]

Public Member Functions

def __init__ (self, *arg, **kwd)
 
def __eq__ (self, other)
 
def __hash__ (self)
 
def __call__ (self, *args)
 
def __str__ (self)
 
def __repr__ (self)
 
def getRing (self)
 
- Public Member Functions inherited from nzmath.ring.QuotientFieldElement
def __init__ (self, numerator, denominator)
 
def __add__ (self, other)
 
def __sub__ (self, other)
 
def __rsub__ (self, other)
 
def __neg__ (self)
 
def __mul__ (self, other)
 
def __pow__ (self, index)
 
def __truediv__ (self, other)
 
def __rtruediv__ (self, other)
 
def inverse (self)
 
- Public Member Functions inherited from nzmath.ring.FieldElement
def __init__ (self)
 
def exact_division (self, other)
 
- Public Member Functions inherited from nzmath.ring.CommutativeRingElement
def mul_module_action (self, other)
 
- Public Member Functions inherited from nzmath.ring.RingElement
def __ne__ (self, other)
 

Public Attributes

 number_of_variables
 
- Public Attributes inherited from nzmath.ring.QuotientFieldElement
 numerator
 
 denominator
 

Detailed Description

The class of rational functions.

Definition at line 10 of file ratfunc.py.

Constructor & Destructor Documentation

◆ __init__()

def nzmath.poly.ratfunc.RationalFunction.__init__ (   self,
args,
**  kwd 
)

Member Function Documentation

◆ __call__()

def nzmath.poly.ratfunc.RationalFunction.__call__ (   self,
args 
)
evaluation

The type of args depends on the type of polynomials
representing numerator and denominator.

Definition at line 60 of file ratfunc.py.

References nzmath.rational.Rational.denominator, nzmath.module.Module.denominator, nzmath.ring.QuotientFieldElement.denominator, nzmath.rational.Rational.numerator, and nzmath.ring.QuotientFieldElement.numerator.

◆ __eq__()

def nzmath.poly.ratfunc.RationalFunction.__eq__ (   self,
  other 
)

◆ __hash__()

def nzmath.poly.ratfunc.RationalFunction.__hash__ (   self)

Reimplemented from nzmath.ring.QuotientFieldElement.

Definition at line 54 of file ratfunc.py.

◆ __repr__()

◆ __str__()

def nzmath.poly.ratfunc.RationalFunction.__str__ (   self)

◆ getRing()

def nzmath.poly.ratfunc.RationalFunction.getRing (   self)
Return a ring to which the rational function belongs.

Reimplemented from nzmath.ring.RingElement.

Definition at line 81 of file ratfunc.py.

References nzmath.poly.ratfunc.RationalFunction.number_of_variables, nzmath.poly.multiutil.NestProvider.number_of_variables, nzmath.poly.multivar.BasicPolynomial.number_of_variables, nzmath.poly.multiutil.PolynomialRingAnonymousVariables.number_of_variables, nzmath.rational.Rational.numerator, and nzmath.ring.QuotientFieldElement.numerator.

Referenced by nzmath.ring.QuotientFieldElement.__add__(), nzmath.poly.uniutil.RingPolynomial.__add__(), nzmath.ring.QuotientFieldElement.__eq__(), nzmath.poly.ratfunc.RationalFunction.__init__(), nzmath.poly.uniutil.FieldPolynomial.__pow__(), nzmath.poly.uniutil.RingPolynomial.__radd__(), nzmath.ring.QuotientFieldElement.__rsub__(), nzmath.poly.uniutil.RingPolynomial.__rsub__(), nzmath.ring.QuotientFieldElement.__rtruediv__(), nzmath.ring.QuotientFieldElement.__sub__(), nzmath.poly.uniutil.RingPolynomial.__sub__(), nzmath.ring.QuotientFieldElement.__truediv__(), nzmath.poly.uniutil.PrimeCharacteristicFunctionsProvider._small_index_mod_pow(), nzmath.ring.CommutativeRingElement.exact_division(), nzmath.poly.uniutil.DivisionProvider.extgcd(), nzmath.poly.uniutil.PrimeCharacteristicFunctionsProvider.factor(), nzmath.poly.uniutil.DivisionProvider.mod_pow(), nzmath.poly.uniutil.PrimeCharacteristicFunctionsProvider.mod_pow(), nzmath.poly.uniutil.PseudoDivisionProvider.monic_pow(), nzmath.ring.CommutativeRingElement.mul_module_action(), and nzmath.poly.uniutil.SubresultantGcdProvider.subresultant_gcd().

Member Data Documentation

◆ number_of_variables


The documentation for this class was generated from the following file: