|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.singularsys.jep.functions.PostfixMathCommand
com.singularsys.jep.functions.BinaryFunction
com.singularsys.jep.functions.Modulus
public class Modulus
Calculates the modulus x % y of the arguments. Both arguments are converted to doubles and the the result is a double. The sign of the result is the same as the sign of the argument.
Remainder,
Serialized Form| Field Summary |
|---|
| Fields inherited from class com.singularsys.jep.functions.PostfixMathCommand |
|---|
curNumberOfParameters, name, NaN, numberOfParameters |
| Constructor Summary | |
|---|---|
Modulus()
|
|
| Method Summary | |
|---|---|
java.lang.Object |
eval(java.lang.Object l,
java.lang.Object r)
|
double |
evaluate(double l,
double r)
|
java.lang.Object |
mod(java.lang.Object l,
java.lang.Object r)
|
| Methods inherited from class com.singularsys.jep.functions.BinaryFunction |
|---|
run |
| Methods inherited from class com.singularsys.jep.functions.PostfixMathCommand |
|---|
asArray, asBool, asDouble, asInt, asLong, asStrictInt, asString, checkNumberOfParameters, checkStack, getName, getNumberOfParameters, setCurNumberOfParameters, setName, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Modulus()
| Method Detail |
|---|
public java.lang.Object eval(java.lang.Object l,
java.lang.Object r)
throws EvaluationException
eval in class BinaryFunctionEvaluationException
public java.lang.Object mod(java.lang.Object l,
java.lang.Object r)
throws EvaluationException
EvaluationException
public double evaluate(double l,
double r)
evaluate in interface RealBinaryFunction
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||