Package jscl.math
Class Literal
- java.lang.Object
-
- jscl.math.Literal
-
- All Implemented Interfaces:
java.lang.Comparable
public class Literal extends java.lang.Object implements java.lang.Comparable
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(java.lang.Object o)intcompareTo(Literal literal)intdegree()Literaldivide(Literal literal)Literalgcd(Literal literal)Literalmultiply(Literal literal)protected Literalnewinstance(int n)intpower(int n)PowerpowerValue()Generic[]productValue()Literalscm(Literal literal)intsize()java.lang.StringtoMathML()java.lang.StringtoString()static LiteralvalueOf()static LiteralvalueOf(Monomial monomial)static LiteralvalueOf(Variable variable)static LiteralvalueOf(Variable variable, int power)Variablevariable(int n)Variable[]variables()VariablevariableValue()
-
-
-
Method Detail
-
size
public int size()
-
variable
public Variable variable(int n)
-
power
public int power(int n)
-
divide
public Literal divide(Literal literal) throws java.lang.ArithmeticException
- Throws:
java.lang.ArithmeticException
-
productValue
public Generic[] productValue() throws NotProductException
- Throws:
NotProductException
-
powerValue
public Power powerValue() throws NotPowerException
- Throws:
NotPowerException
-
variableValue
public Variable variableValue() throws NotVariableException
- Throws:
NotVariableException
-
variables
public Variable[] variables()
-
degree
public int degree()
-
compareTo
public int compareTo(Literal literal)
-
compareTo
public int compareTo(java.lang.Object o)
- Specified by:
compareToin interfacejava.lang.Comparable
-
valueOf
public static Literal valueOf()
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
toMathML
public java.lang.String toMathML()
-
newinstance
protected Literal newinstance(int n)
-
-