public PolyF(List <double> cooeffs) { double p = 0.0; MathFunction f = new ConstantF(0.0); foreach (double c in cooeffs) { if (p == 0.0) { f = new ConstantF(c); } else { f = new AddF(f, new MultF(new PowerF(p), new ConstantF(c))); } p += 1.0; } _f = f; }
public MultF(MathFunction f, MathFunction g) { _f = f; _g = g; }
public CompF(MathFunction f, MathFunction g) { _f = f; _g = g; }
public AddF(MathFunction f, MathFunction g) { _f = f; _g = g; }