Пример #1
0
 /// <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;
 }
Пример #2
0
 /// <summary>Return the number of steps of this summation</summary>
 internal virtual long GetSteps()
 {
     return(E.GetSteps());
 }