chineseremainder
Calculates the smallest value of n stil satisfing the conditions of n mod p[i] = r[i], i = 0, 1, 2, ..., n-1. Depending on input, function can return scalar, vector or matrix
Arguments
- Vector of integers p
- Vector of integers r
Output
Integer result n
Examples