Closed fjames86 closed 11 years ago
turns out not to be a bug, rather a necessary condition for the function to work: all ni must be coprime. will give incorrect results otherwise.
can add check that all n_i are coprime before proceeding with calculation to ensure correct results.
gives incorrect results for large input numbers. probably rounding error during internal condition