fjames86 / fpoly

Manipulate dense multivariate polynomials
0 stars 0 forks source link

bug in chinese-remainder #4

Closed fjames86 closed 11 years ago

fjames86 commented 11 years ago

gives incorrect results for large input numbers. probably rounding error during internal condition

fjames86 commented 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.

fjames86 commented 11 years ago

can add check that all n_i are coprime before proceeding with calculation to ensure correct results.