com.bestcode.mathparser
Interface IParameter
- public interface IParameter
IParameter is used to supply a parameter value for a user defined function.
All functions take a IParameter that enables them to query the current value
of the parameter using the getValue() function.
Example:
class _cosh extends OneParamFunc {
     public double run(IParameter[] p){
     //better to call p[0].getValue() once, it can be costly:
     double x_ = p[0].getValue();
     return (Math.exp(x_)+Math.exp(-x_))*0.5;
     }
}
getValue
public double getValue()