Uses of Interface
dev.civl.sarl.IF.number.RationalNumber
Packages that use RationalNumber
Package
Description
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.-
Uses of RationalNumber in dev.civl.sarl.IF
Methods in dev.civl.sarl.IF that return RationalNumberModifier and TypeMethodDescriptionCoreUniverse.getProbabilisticBound()The upper bound on the probability of error when deciding whether a polynomial is 0.Methods in dev.civl.sarl.IF with parameters of type RationalNumberModifier and TypeMethodDescriptionvoidCoreUniverse.setProbabilisticBound(RationalNumber epsilon) Sets the upper bound on the probability of error when deciding whether a polynomial is 0. -
Uses of RationalNumber in dev.civl.sarl.IF.number
Methods in dev.civl.sarl.IF.number that return RationalNumberModifier and TypeMethodDescriptionNumberFactory.add(RationalNumber arg0, RationalNumber arg1) Adds two rational numbers and returns the result.NumberFactory.decrement(RationalNumber arg) arg-1.0NumberFactory.divide(RationalNumber arg0, RationalNumber arg1) Divides two rational numbers and returns the result.NumberFactory.fraction(IntegerNumber numerator, IntegerNumber denominator) Returns the rational number which is the quotient of the two integers.NumberFactory.increment(RationalNumber arg) add(arg, 1.0)NumberFactory.infiniteRational(boolean isPositiveInfinity) Returns an infiniteRationalNumber, its signum is determined by the given boolean value.NumberFactory.integerToRational(IntegerNumber integer) Casts an integer to a rational number.NumberFactory.multiply(RationalNumber arg0, RationalNumber arg1) Multiplies two rational numbers and returns the result.NumberFactory.negate(RationalNumber arg0) Returns the negation of the given rational number, i.e., -x.NumberFactory.negativeInfinityRational()Return aRationalNumberrepresenting the negative infinity.NumberFactory.oneRational()The rational number one.NumberFactory.positiveInfinityRational()Return aRationalNumberrepresenting the positive infinity.NumberFactory.power(RationalNumber number, int exp) Calculate the given rational number powering a given exponent and returns result.NumberFactory.power(RationalNumber number, IntegerNumber exp) Calculate the givenRationalNumberbase powering a givenIntegerNumberexponent and returns result.Returns a rational representation of the number.Returns the rational number specified by the given string, where the string is a decimal representation of the number.NumberFactory.rational(BigInteger numerator, BigInteger denominator) Returns the rational number which is the quotient of the two given integers.NumberFactory.subtract(RationalNumber arg0, RationalNumber arg1) Subtracts two rational numbers and returns the result.NumberFactory.zeroRational()The rational number zero.Methods in dev.civl.sarl.IF.number with parameters of type RationalNumberModifier and TypeMethodDescriptionNumberFactory.add(RationalNumber arg0, RationalNumber arg1) Adds two rational numbers and returns the result.NumberFactory.ceil(RationalNumber arg0) Returns the least integer greater than or equal to the given rational number.intNumberFactory.compare(RationalNumber arg0, RationalNumber arg1) Returns a positive value if arg0>arg1, 0 if arg0 equals arg1, -1 if arg0invalid input: '<'arg1.NumberFactory.decrement(RationalNumber arg) arg-1.0NumberFactory.denominator(RationalNumber arg0) Returns the denominator in a representation of the rational number as the quotient of two integers.NumberFactory.divide(RationalNumber arg0, RationalNumber arg1) Divides two rational numbers and returns the result.NumberFactory.floor(RationalNumber arg0) Returns the greatest integer less than or equal to the given rational number.booleanNumberFactory.gaussianElimination(RationalNumber[][] matrix) Performs Gauss-Jordan Elimination on a matrix of rational numbers, transforming the matrix to reduced row echelon form.NumberFactory.increment(RationalNumber arg) add(arg, 1.0)NumberFactory.integerValue(RationalNumber arg0) Returns the value of the rational number as an integer number.booleanNumberFactory.isIntegral(RationalNumber arg0) Returns true iff the rational number is an integer, e.g., "3.0", or "4/2".NumberFactory.multiply(RationalNumber arg0, RationalNumber arg1) Multiplies two rational numbers and returns the result.NumberFactory.negate(RationalNumber arg0) Returns the negation of the given rational number, i.e., -x.NumberFactory.numerator(RationalNumber arg0) Returns the numerator in a representation of the rational number as the quotient of two integers.NumberFactory.power(RationalNumber number, int exp) Calculate the given rational number powering a given exponent and returns result.NumberFactory.power(RationalNumber number, IntegerNumber exp) Calculate the givenRationalNumberbase powering a givenIntegerNumberexponent and returns result.booleanNumberFactory.relativeGaussianElimination(RationalNumber[][] mat1, RationalNumber[][] mat2) Performs a form of "relative Gauss-Jordan elimination".NumberFactory.scientificString(RationalNumber num, int numSig) Constructs a string representation of the given rational number in scientific notation: x.xxxx * 10^{-yyy}.NumberFactory.subtract(RationalNumber arg0, RationalNumber arg1) Subtracts two rational numbers and returns the result. -
Uses of RationalNumber in dev.civl.sarl.IF.object
Methods in dev.civl.sarl.IF.object that return RationalNumberModifier and TypeMethodDescriptionSymbolicObject.getOrder()Experimental: get the number which imposes a total order on the set of all canonic symbolic object.Methods in dev.civl.sarl.IF.object with parameters of type RationalNumberModifier and TypeMethodDescriptionvoidSymbolicObject.setOrder(RationalNumber order) Experimental: sets the number which imposes a total order on the set of all canonic symbolic object.