35 if (Left < 0 || Left >
int.MaxValue || Right < 0 || Right >
int.MaxValue || Left != Math.Truncate(Left) || Right != Math.Truncate(Right))
42 throw new ScriptRuntimeException(
"The Denominator in the OVER operator, cannot be larger than the numerator",
this);
46 int Max = Math.Max(k, n_k);
47 int Min = Math.Min(k, n_k);
54 while (Result > 1 && Min > 1)
Script runtime exception.
Class managing a script expression.
Base class for binary double operators.
Base class for all nodes in a parsed script tree.
int Length
Length of expression covered by node.
int Start
Start position in script expression.
BinomialCoefficient(ScriptNode Left, ScriptNode Right, int Start, int Length, Expression Expression)
Binomial coefficient.
override IElement Evaluate(double Left, double Right)
Evaluates the double operator.
Basic interface for all types of elements.