com.dandymadeproductions.expressionparser.functions
Class TwoArgFunction

java.lang.Object
  extended by com.dandymadeproductions.expressionparser.functions.Function
      extended by com.dandymadeproductions.expressionparser.functions.TwoArgFunction
Direct Known Subclasses:
AddFunc, DivFunc, MultFunc, PowerFunc, SubFunc

public abstract class TwoArgFunction
extends Function

Abstract class type for two-argument functions.

Version:
1.6 02/11/2012
Author:
David Wanqian Liu, Dana M. Proctor

Field Summary
 
Fields inherited from class com.dandymadeproductions.expressionparser.functions.Function
numArgs
 
Constructor Summary
TwoArgFunction()
           
 
Method Summary
 Complex apply(Complex a)
           
 double apply(double a)
           
 
Methods inherited from class com.dandymadeproductions.expressionparser.functions.Function
apply, apply, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TwoArgFunction

public TwoArgFunction()
Method Detail

apply

public double apply(double a)
Specified by:
apply in class Function

apply

public Complex apply(Complex a)
Specified by:
apply in class Function