Class NTRationalExpression
java.lang.Object
edu.udel.cis.vsl.sarl.object.common.CommonSymbolicObject
edu.udel.cis.vsl.sarl.expr.common.HomogeneousExpression<Monomial>
edu.udel.cis.vsl.sarl.ideal.common.NTRationalExpression
- All Implemented Interfaces:
RationalExpression,NumericExpression,SymbolicExpression,SymbolicObject
public class NTRationalExpression
extends HomogeneousExpression<Monomial>
implements RationalExpression
A nontrivial
RationalExpression. It consists of a numerator and
denominator, both Monomials. The denominator is not 1 or 0, the
numerator is not 0, and the numerator does not equal the denominator.-
Nested Class Summary
Nested classes/interfaces inherited from interface edu.udel.cis.vsl.sarl.IF.expr.SymbolicExpression
SymbolicExpression.SymbolicOperatorNested classes/interfaces inherited from interface edu.udel.cis.vsl.sarl.IF.object.SymbolicObject
SymbolicObject.SymbolicObjectKind -
Field Summary
Fields inherited from class edu.udel.cis.vsl.sarl.expr.common.HomogeneousExpression
debug -
Method Summary
Modifier and TypeMethodDescriptionReturns the denominator of this rational expression.denominator(IdealFactory factory) Returns the denominator of this rational expression.Returns the numerator of this rational expression.numerator(IdealFactory factory) Returns the numerator of this rational expressionpowerInt(IdealFactory factory, IntegerNumber exponent) Computes an expression equivalent to raising this expression to theexponentpower.powerRational(IdealFactory factory, RationalExpression exponent) Computes an expression equivalent to raising this expression to theexponentpower.Methods inherited from class edu.udel.cis.vsl.sarl.expr.common.HomogeneousExpression
argument, arguments, atomString, canonizeChildren, containsQuantifier, containsSubobject, getArguments, getFreeVars, isFalse, isNull, isNumeric, isOne, isTrue, isZero, numArguments, operator, printCompressedTree, size, symbolicObjectKind, toStringBuffer, toStringBuffer1, toStringBufferLong, typeMethods inherited from class edu.udel.cis.vsl.sarl.object.common.CommonSymbolicObject
equals, getOrder, hashCode, id, isCanonic, setInCanonic, setOrder, toStringMethods inherited from interface edu.udel.cis.vsl.sarl.IF.expr.SymbolicExpression
argument, atomString, getArguments, getFreeVars, isFalse, isNull, isNumeric, isOne, isTrue, isZero, numArguments, operator, printCompressedTree, size, typeMethods inherited from interface edu.udel.cis.vsl.sarl.IF.object.SymbolicObject
containsQuantifier, containsSubobject, equals, getOrder, hashCode, id, isCanonic, setInCanonic, setOrder, symbolicObjectKind, toString, toStringBuffer, toStringBufferLong
-
Method Details
-
numerator
Description copied from interface:RationalExpressionReturns the numerator of this rational expression- Specified by:
numeratorin interfaceRationalExpression- Parameters:
factory- the ideal factory responsible for this expression- Returns:
- the numerator of this rational expression
-
numerator
Returns the numerator of this rational expression.- Returns:
- the numerator
-
denominator
Description copied from interface:RationalExpressionReturns the denominator of this rational expression.- Specified by:
denominatorin interfaceRationalExpression- Parameters:
factory- the ideal factory responsible for this expression- Returns:
- the denominator of this rational expression
-
denominator
Returns the denominator of this rational expression.- Returns:
- the denominator
-
powerRational
Description copied from interface:RationalExpressionComputes an expression equivalent to raising this expression to the
exponentpower.Preconditions:
- if the monomial constant of the numerator of
exponentis an integer (including a real integer), it is 1 - if this has integer type then
exponenthas integer type
- Specified by:
powerRationalin interfaceRationalExpression- Parameters:
factory- the ideal factory responsible for this expressionexponent- the power to which this expression should be raised- Returns:
- an expression equivalent to raising this expression to the
exponentpower
- if the monomial constant of the numerator of
-
powerInt
Description copied from interface:RationalExpressionComputes an expression equivalent to raising this expression to theexponentpower. In this case the exponent is anIntegerNumber.- Specified by:
powerIntin interfaceRationalExpression- Parameters:
factory- the ideal factory responsible for this expressionexponent- the power to which this expression should be raised, must be positive- Returns:
- an expression equivalent to raising this expression to the
exponentpower
-