Math 302, Differential Equations JHU


com.rychlik.calculator
Class StackMachine.BinaryMathFunction

java.lang.Object
  |
  +--com.rychlik.calculator.StackMachine.MathFunction
        |
        +--com.rychlik.calculator.StackMachine.BinaryMathFunction
All Implemented Interfaces:
java.io.Serializable, StackMachine.Instruction
Direct Known Subclasses:
StackMachine.Add, StackMachine.And, StackMachine.Div, StackMachine.Eq, StackMachine.Ge, StackMachine.Gt, StackMachine.Le, StackMachine.Lt, StackMachine.Max, StackMachine.Min, StackMachine.Mul, StackMachine.Ne, StackMachine.Or, StackMachine.Pow, StackMachine.Sub
Enclosing class:
StackMachine

public abstract class StackMachine.BinaryMathFunction
extends StackMachine.MathFunction

Describe class BinaryMathFunction here.

See Also:
Serialized Form

Constructor Summary
StackMachine.BinaryMathFunction()
           
 
Method Summary
 int arity()
          Describe arity method here.
abstract  double eval(double x, double y)
          Describe eval method here.
 void execute()
          Describe execute method here.
 
Methods inherited from class com.rychlik.calculator.StackMachine.MathFunction
getName, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StackMachine.BinaryMathFunction

public StackMachine.BinaryMathFunction()
Method Detail

arity

public int arity()
Describe arity method here.

Returns:
an int value

execute

public void execute()
             throws ParseException
Describe execute method here.

Throws:
ParseException - if an error occurs

eval

public abstract double eval(double x,
                            double y)
Describe eval method here.

Parameters:
x - a double value
y - a double value
Returns:
a double value



This page last modified Sun Sep 12 12:29:36 2004
Questions? Comments? Please send feedback to jason howald