Jump to content

Chinese remainder theorem: Difference between revisions

(Frink)
Line 973:
 
=={{header|Frink}}==
This example solves an extended version of the Chinese Remainder theorem by allowing an optional third parameter <CODE>d</CODE> which is an integer. The solution returned is the smallest solution &gt;= d. This program also works with arbitrarily-large integers.
<lang frink>/** arguments:
[r, m, d=0] where r and m are arrays of the remainder terms r and the
494

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.