public override object Eval(RuntimeContext context) { var value = ParameterExpression.Access <double>(context, "value"); var digits = (int)ParameterExpression.Access <double>(context, "digits"); return(Math.Round(value, digits)); }
public override object Eval(RuntimeContext context) { var left = ParameterExpression.Access <double>(context, "left"); var right = ParameterExpression.Access <double>(context, "right"); return(Math.Min(left, right)); }
public override object Eval(RuntimeContext context) { var x = ParameterExpression.Access <double>(context, "x"); var e = ParameterExpression.Access <double>(context, "e"); return(Math.Log(x, e)); }
public override object Eval(RuntimeContext context) { return(Math.Exp(ParameterExpression.Access <double>(context, "x"))); }