Beispiel #1
0
 public void CopyTo(Function func)
 {
     func.variables = new List<VariablesMulriplication>();
     this.variables.ForEach(vs => func.variables.Add(vs));
     func.CopyFunctions(this);
 }
Beispiel #2
0
        public Function ForceMul(FunctionElement e)
        {
            if (e.IsDouble() && e.ToDouble() == 1)
            {
                return this.Clone() as Function;
            }
            if (this.MathFunctions.Count != 0)
            {
                return this * e;
            }
            Function f = new Function();

            this.variables.ForEach(vs => f += vs * e);
            f.CopyFunctions(this);
            return f;
        }