/// <summary>Constructor</summary> public Summation(ArithmeticProgression N, ArithmeticProgression E) { if (N.GetSteps() != E.GetSteps()) { throw new ArgumentException("N.getSteps() != E.getSteps()," + "\n N.getSteps()=" + N.GetSteps() + ", N=" + N + "\n E.getSteps()=" + E.GetSteps() + ", E=" + E); } this.N = N; this.E = E; }
/// <summary>Return the number of steps of this summation</summary> internal virtual long GetSteps() { return(E.GetSteps()); }