public override double Evaluate(double d0, double d1) { if (d1 == NumericFunction.ZERO) { throw new EvaluationException(ErrorEval.DIV_ZERO); } return(MathX.mod(d0, d1)); }
protected override double Evaluate(double[] values) { if (values.Length < 1) { throw new EvaluationException(ErrorEval.DIV_ZERO); } return(MathX.average(values)); }
public override double Evaluate(double d0, double d1) { if (d0 > int.MaxValue || d1 > int.MaxValue) { throw new EvaluationException(ErrorEval.NUM_ERROR); } return(MathX.nChooseK((int)d0, (int)d1)); }
public override double Evaluate(double d0, double d1) { if (d1 == ZERO) { if (d0 == ZERO) { return(ZERO); } throw new EvaluationException(ErrorEval.DIV_ZERO); } return(MathX.floor(d0, d1)); }
public override double Evaluate(double d0, double d1) { return(MathX.round(d0, (int)d1)); }
protected override double Evaluate(double[] values) { return(values.Length > 0 ? MathX.min(values) : 0); }
public override double Evaluate(double d) { return(MathX.sign(d)); }
public override double Evaluate(double d) { return(MathX.factorial((int)d)); }
protected override double Evaluate(double[] values) { return(MathX.product(values)); }
protected override double Evaluate(double[] values) { return(MathX.sumsq(values)); }
public override double Evaluate(double d) { return(MathX.asinh(d)); }