- All Superinterfaces:
Monomial,NumericExpression,RationalExpression,SymbolicExpression,SymbolicObject
A constant, i.e., a concrete number. Wraps a
NumberObject, which
wraps a Number. It is how a concrete number is represented as a
SymbolicExpression.-
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 TypeMethodDescriptionnumber()powerInt(IdealFactory factory, IntegerNumber exponent) Computes an expression equivalent to raising this expression to theexponentpower.value()Returns theNumberObjectwrapped by thisConstant.Methods inherited from interface dev.civl.sarl.ideal.IF.Monomial
expand, getTruePrimitives, hasNontrivialExpansion, lower, maxDegreeOf, monic, monomialConstant, monomialDegree, monomialOrder, termMap, totalDegreeMethods inherited from interface dev.civl.sarl.ideal.IF.RationalExpression
denominator, numerator, powerRationalMethods 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
-
value
NumberObject value()Returns theNumberObjectwrapped by thisConstant.- Returns:
- the underlying
NumberObject
-
number
Number number()Returns the underlyingNumberwrapped by thisConstant. Convenience method, equivalent tovalue().getNumber().- Returns:
value().getNumber()
-
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 interfaceMonomial- 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
-