- All Superinterfaces:
NumericExpression,SymbolicExpression,SymbolicObject
- All Known Subinterfaces:
Constant,Monic,Monomial,Polynomial,Primitive,PrimitivePower
A
RationalExpression is the quotient of two Monomials of real
type. It also has real type.-
Nested Class Summary
Nested classes/interfaces inherited from interface dev.civl.sarl.IF.expr.SymbolicExpression
SymbolicExpression.SymbolicOperatorNested classes/interfaces inherited from interface dev.civl.sarl.IF.object.SymbolicObject
SymbolicObject.SymbolicObjectKind -
Method Summary
Modifier and TypeMethodDescriptiondenominator(IdealFactory factory) Returns the denominator 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 interface dev.civl.sarl.IF.expr.SymbolicExpression
argument, atomString, getArguments, getFreeVars, isFalse, isNull, isNumeric, isOne, isTrue, isZero, numArguments, operator, printCompressedTree, size, typeMethods inherited from interface dev.civl.sarl.IF.object.SymbolicObject
containsQuantifier, containsSubobject, containsSubobjectIgnoringType, equals, getOrder, hashCode, id, isCanonic, setInCanonic, setOrder, symbolicObjectKind, toString, toStringBuffer, toStringBufferLong
-
Method Details
-
numerator
Returns the numerator of this rational expression- Parameters:
factory- the ideal factory responsible for this expression- Returns:
- the numerator of this rational expression
-
denominator
Returns the denominator of this rational expression.- Parameters:
factory- the ideal factory responsible for this expression- Returns:
- the denominator of this rational expression
-
powerRational
Computes 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
- 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
Computes an expression equivalent to raising this expression to theexponentpower. In this case the exponent is anIntegerNumber.- 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
-