Package jscl.math
Class Rational
java.lang.Object
jscl.math.Generic
jscl.math.Rational
- All Implemented Interfaces:
Comparable,jscl.editor.rendering.MathObject,Arithmetic,Field
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionantiderivative(Variable variable) intintintdegree()derivative(Variable variable) eval()expand()gcd()inverse()booleanisConstant(Variable variable) booleanisPolynomial(Variable variable) negate()numeric()pow(int exponent) Generic[]intsignum()simplify()substitute(Variable variable, Generic generic) Generic[]sumValue()toMathML()toString()static RationalvalueOf(long n, long d) static RationalVariable[]Methods inherited from class jscl.math.Generic
abs, add, booleanValue, compareTo, divide, divideAndRemainder, equals, gcdAndNormalize, isIdentity, isOne, isZero, multiple, multiply, normalize, pow, remainder, scm, subtract, subtract, vectorValue
-
Field Details
-
factory
-
-
Constructor Details
-
Rational
-
-
Method Details
-
numerator
-
denominator
-
add
-
add
-
multiply
-
multiply
-
divide
- Specified by:
dividein classGeneric- Throws:
ArithmeticException
-
inverse
-
gcd
-
gcd
-
gcd
-
pow
-
negate
-
signum
public int signum() -
degree
public int degree() -
antiderivative
- Specified by:
antiderivativein classGeneric- Throws:
NotIntegrableException
-
derivative
- Specified by:
derivativein classGeneric
-
substitute
- Specified by:
substitutein classGeneric
-
eval
-
expand
-
factorize
-
elementary
- Specified by:
elementaryin classGeneric
-
simplify
-
function
-
numeric
-
valueof
-
sumValue
-
productValue
- Specified by:
productValuein classGeneric
-
powerValue
- Specified by:
powerValuein classGeneric
-
expressionValue
- Specified by:
expressionValuein classGeneric
-
integerValue
- Specified by:
integerValuein classGeneric- Throws:
NotIntegerException
-
variableValue
- Specified by:
variableValuein classGeneric- Throws:
NotVariableException
-
variables
-
isPolynomial
- Specified by:
isPolynomialin classGeneric
-
isConstant
- Specified by:
isConstantin classGeneric
-
compareTo
-
compareTo
-
valueOf
-
valueOf
-
toString
-
toMathML
-