cureos / csnumerics

Portable numerical algorithms in C#
GNU Lesser General Public License v3.0
32 stars 11 forks source link

Loop in ALTMOV incorrectly processed #1

Closed anders9ustafsson closed 9 years ago

anders9ustafsson commented 9 years ago

Reported by Ulrich Römer, Karlsruhe Institute of Technology:

I believe there is a bug in line 1308 (in subroutine ALTMOV). It states

for (var i = 1; i >= n; ++i)

whereas I believe it should be

for (var i = 1; i <= n; ++i)

for the loop to run more than one time. Please check this line (and please let me know).