$n0))), 4 gmp_add( 5 gmp_mul($c1, gmp_mul($ms1, gmp_invert($ms1, $n1))), 6 gmp_mul($c2, gmp_mul($ms2, gmp_invert($ms2, $n2))) 7 ) 8 ), 9 gmp_mul($n0, gmp_mul($n1, $n2)) 10 ); 11 12 $result = ( 13 $c0 * $ms0 * gmp_invert($ms0, $n0) 14 + $c1 * $ms1 * gmp_invert($ms1, $n1) 15 + $c2 * $ms2 * gmp_invert($ms2, $n2) 16 ) % ($n0 * $n1 * $n2); 59 Clearer way to deal with GMP numbers https://wiki.php.net/rfc/operator_overloading_gmp dinsdag 9 september 14