Uses of Interface
dev.civl.sarl.IF.number.Number
Packages that use Number
Package
Description
This package provides the internal interface for the representation of basic
symbolic expressions.
The ideal module supports reasoning about numerical expressions using "ideal"
mathematical reals and integers.
This package and its subpackages provide the "public interface" to SARL.
The number package supports infinite-precision integer and rational
numbers.
The object package provides the
SymbolicObject
interface, which is the root of the symbolic object type hierarchy.Internal interface for the symbolic object module, providing mechanisms for
creating
SymbolicObjects.Interfaces for the simplification of symbolic expressions.
-
Uses of Number in dev.civl.sarl.expr.IF
Methods in dev.civl.sarl.expr.IF that return NumberModifier and TypeMethodDescriptionNumericExpressionFactory.extractNumber(NumericExpression expression) Attempts to interpret the given symbolic expression as a concrete number. -
Uses of Number in dev.civl.sarl.ideal.IF
Methods in dev.civl.sarl.ideal.IF that return NumberMethods in dev.civl.sarl.ideal.IF with parameters of type Number -
Uses of Number in dev.civl.sarl.IF
Methods in dev.civl.sarl.IF that return NumberModifier and TypeMethodDescriptionCoreUniverse.extractNumber(NumericExpression expression) Returns theNumbervalue if the given symbolic expression has a concrete numerical value, else returnsnull.Reasoner.extractNumber(NumericExpression expression) If the given expression can be reduced to a concrete numeric value using the context, returns that concrete value, else returns null.SymbolicUniverse.extractNumber(BooleanExpression assumption, NumericExpression expression) Attempts to extract a concrete numeric value from the given expression, using the assumption if necessary to simplify the expression.Methods in dev.civl.sarl.IF with parameters of type NumberModifier and TypeMethodDescriptionReturns the concrete symbolic expression wrapping the given number.CoreUniverse.numberObject(Number value) Returns theNumberObjectwrapping the givenNumbervalue. -
Uses of Number in dev.civl.sarl.IF.number
Subinterfaces of Number in dev.civl.sarl.IF.numberModifier and TypeInterfaceDescriptioninterfaceAn instance of this class represents an integer number.interfaceAn instance of this class represents a rational number.Methods in dev.civl.sarl.IF.number that return NumberModifier and TypeMethodDescriptionReturns absolute value of number, preserving type.Adds two numbers and returns result.subtracts 1 of proper typeDivides two numbers and returns result.adds 1 of proper typeNumberFactory.infiniteNumber(boolean isIntegral, boolean isPositiveInfinity) Returns an infiniteNumber, its type is determined by the first boolean argumentisIntegeraland its signum is determined by the second boolean argumentisPositiveInfinity.Interval.lower()The lower bound of this interval.Multiplies two numbers and returns result.Negates the number, preserving the type (IntegerNumberIF or RationalNumberIF).Makes best guest on type of number based on string.Calculate the given number powering a given exponent and returns result.NumberFactory.power(Number number, IntegerNumber exp) Calculate the givenNumberbase powering a givenIntegerNumberexponent and returns result.Subtracts two numbers and returns result.Interval.upper()The upper bound of this interval.Methods in dev.civl.sarl.IF.number with parameters of type NumberModifier and TypeMethodDescriptionReturns absolute value of number, preserving type.Adds two numbers and returns result.NumberFactory.affineTransform(Interval interval, Number a, Number b) Computes the affineTransform of the input intervalitvwith two numbers:aandbas parameters.intDetermines when the given number lies to the left, inside, or to the right of this interval.intReturns a positive value if arg0 is greater than arg1, 0 if arg0 equals arg1, a negative value if arg0 is less than arg1.booleanDoes this interval contain the given number? The behavior is unspecified if this method is given a number which has a different type from that of this interval.subtracts 1 of proper typeDivides two numbers and returns result.adds 1 of proper typeMultiplies two numbers and returns result.Negates the number, preserving the type (IntegerNumberIF or RationalNumberIF).NumberFactory.newInterval(boolean isIntegral, Number lower, boolean strictLower, Number upper, boolean strictUpper) Returns a newIntervalas specified.intNumber.numericalCompareTo(Number other) This is a numerical comparison, so the order is a numerical order based on the value of this and other.Calculate the given number powering a given exponent and returns result.NumberFactory.power(Number number, IntegerNumber exp) Calculate the givenNumberbase powering a givenIntegerNumberexponent and returns result.Returns a rational representation of the number.NumberFactory.restrictLower(Interval interval, Number bound, boolean strict) Restricts the lower bound of an interval as specified.NumberFactory.restrictUpper(Interval interval, Number bound, boolean strict) Restricts the upper bound of an interval as specified.NumberFactory.singletonInterval(Number x) Returns the interval consisting of the single finite number x: [x,x].Subtracts two numbers and returns result. -
Uses of Number in dev.civl.sarl.IF.object
Methods in dev.civl.sarl.IF.object that return Number -
Uses of Number in dev.civl.sarl.object.IF
Methods in dev.civl.sarl.object.IF with parameters of type Number -
Uses of Number in dev.civl.sarl.simplify.IF
Methods in dev.civl.sarl.simplify.IF that return NumberModifier and TypeMethodDescriptionRange.getSingletonValue()If this range represents a singleton set (a set consisting of exactly one Number), this method returns the value of its sole element; otherwise, returnsnull.Methods in dev.civl.sarl.simplify.IF with parameters of type NumberModifier and TypeMethodDescriptionRangeFactory.affineTransform(Range range, Number a, Number b) booleanRange.containsNumber(Number number) Does this set contain the given number as a member?RangeFactory.interval(boolean isIntegral, Number lower, boolean strictLower, Number upper, boolean strictUpper) Returns aRangeconsisting of exactly one interval representing all x between theNumberlower(exclusively iffstrictLoweristrue, else inclusively) and theNumberupper(exclusively iffstrictUpperistrue, else inclusively).
Preconditions:
> All arguments should satisfy the preconditions ofInterval.
Postconditions:
> The generated interval instance should satisfy the postconditions ofInterval.RangeFactory.singletonSet(Number number)