1using System.Collections.Generic;
38 get {
return new string[] {
"prod",
"∏" }; }
60 int i, c = Values.Length;
62 for (i = 0; i < c; i++)
86 Complex Result = Complex.One;
87 int i, c = Values.Length;
89 for (i = 0; i < c; i++)
134 if (Elements.Count == 1)
144 Product = Result.MultiplyRight(RE);
146 Product = (
IRingElement)Operators.Arithmetics.Multiply.EvaluateMultiplication(Result, RE, Node);
Script runtime exception.
Class managing a script expression.
static Complex CalcProduct(Complex[] Values)
Calculates the product of a set of complex values.
override IElement EvaluateVector(DoubleVector Argument, Variables Variables)
Evaluates the function on a vector argument.
Product(ScriptNode Argument, int Start, int Length, Expression Expression)
Product(v), Prod(v)
static IElement EvaluateProduct(ICollection< IElement > Elements, ScriptNode Node)
Multiplies the elements of a vector.
static double CalcProduct(double[] Values)
Calculates the product of a set of double values.
override IElement EvaluateVector(ComplexVector Argument, Variables Variables)
Evaluates the function on a vector argument.
override string FunctionName
Name of the function
override IElement EvaluateVector(IVector Argument, Variables Variables)
Evaluates the function on a vector argument.
static IElement EvaluateProduct(IVector Vector, ScriptNode Node)
Multiplies the elements of a vector.
override string[] Aliases
Optional aliases. If there are no aliases for the function, null is returned.
ScriptNode Argument
Function argument.
Base class for funcions of one vector variable.
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.
static readonly ObjectValue Null
Null value.
Basic interface for all types of elements.
Basic interface for all types of ring elements.
Basic interface for vectors.
ICollection< IElement > VectorElements
An enumeration of vector elements.