public void CopyTo(Function func) { func.variables = new List<VariablesMulriplication>(); this.variables.ForEach(vs => func.variables.Add(vs)); func.CopyFunctions(this); }
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; }