org.nfunk.jep.function
Class Divide
java.lang.Object
org.nfunk.jep.function.PostfixMathCommand
org.nfunk.jep.function.Divide
- All Implemented Interfaces:
- PostfixMathCommandI
- Direct Known Subclasses:
- ElementDivide, MDivide
public class Divide
- extends PostfixMathCommand
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Divide
public Divide()
run
public void run(Stack inStack)
throws ParseException
- Description copied from class:
PostfixMathCommand
- Throws an exception because this method should never be called under
normal circumstances. Each function should use it's own run() method
for evaluating the function. This includes popping off the parameters
from the stack, and pushing the result back on the stack.
- Specified by:
run in interface PostfixMathCommandI- Overrides:
run in class PostfixMathCommand
- Throws:
ParseException
div
public Object div(Object param1,
Object param2)
throws ParseException
- Throws:
ParseException
div
public Double div(Number d1,
Number d2)
div
public Complex div(Complex c1,
Complex c2)
div
public Complex div(Number d,
Complex c)
div
public Complex div(Complex c,
Number d)
div
public Vector div(Vector v,
Number d)
div
public Vector div(Number d,
Vector v)
div
public Vector div(Vector v,
Complex c)
div
public Vector div(Complex c,
Vector v)
Copyright © 2014. All rights reserved.