Example #1
0
        public override double Evaluate(Func <Variable, double> func)
        {
            var numerEval = Numerator.Evaluate(func);

            if (numerEval == 0)
            {
                return(0);
            }
            return(numerEval / Denominator.Evaluate(func));
        }
Example #2
0
 public override decimal?Evaluate() => Numerator.Evaluate() / Denominator.Evaluate();