Chinese remainder theorem: Difference between revisions
Content deleted Content added
Line 976: | Line 976: | ||
This program also works with arbitrarily-large integers. |
This program also works with arbitrarily-large integers. |
||
Input is validated and useful error messages are emitted if the input data is invalid. If a solution cannot be found, this returns the special value <CODE>undef</CODE>. |
|||
<lang frink>/** arguments: |
<lang frink>/** arguments: |
||
[r, m, d=0] where r and m are arrays of the remainder terms r and the |
[r, m, d=0] where r and m are arrays of the remainder terms r and the |