Пример #1
0
            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));
            }
Пример #2
0
            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));
            }
Пример #3
0
            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));
            }
Пример #4
0
 public override object Eval(RuntimeContext context)
 {
     return(Math.Exp(ParameterExpression.Access <double>(context, "x")));
 }