Öffentliche Methoden | |
add ($x, $y) | |
sub ($x, $y) | |
pow ($base, $exponent) | |
cmp ($x, $y) | |
init ($number, $base=10) | |
mod ($base, $modulus) | |
mul ($x, $y) | |
div ($x, $y) | |
_powmod ($base, $exponent, $modulus) | |
powmod ($base, $exponent, $modulus) | |
toString ($num) | |
Datenfelder | |
$type = 'bcmath' |
Definiert in Zeile 190 der Datei BigMath.php.
_powmod | ( | $ | base, | |
$ | exponent, | |||
$ | modulus | |||
) |
Same as bcpowmod when bcpowmod is missing
private
Definiert in Zeile 238 der Datei BigMath.php.
00239 { 00240 $square = $this->mod($base, $modulus); 00241 $result = 1; 00242 while($this->cmp($exponent, 0) > 0) { 00243 if ($this->mod($exponent, 2)) { 00244 $result = $this->mod($this->mul($result, $square), $modulus); 00245 } 00246 $square = $this->mod($this->mul($square, $square), $modulus); 00247 $exponent = $this->div($exponent, 2); 00248 } 00249 return $result; 00250 }
add | ( | $ | x, | |
$ | y | |||
) |
cmp | ( | $ | x, | |
$ | y | |||
) |
div | ( | $ | x, | |
$ | y | |||
) |
init | ( | $ | number, | |
$ | base = 10 | |||
) |
mod | ( | $ | base, | |
$ | modulus | |||
) |
mul | ( | $ | x, | |
$ | y | |||
) |
pow | ( | $ | base, | |
$ | exponent | |||
) |
powmod | ( | $ | base, | |
$ | exponent, | |||
$ | modulus | |||
) |
Definiert in Zeile 252 der Datei BigMath.php.
00253 { 00254 if (function_exists('bcpowmod')) { 00255 return bcpowmod($base, $exponent, $modulus); 00256 } else { 00257 return $this->_powmod($base, $exponent, $modulus); 00258 } 00259 }
sub | ( | $ | x, | |
$ | y | |||
) |
toString | ( | $ | num | ) |
$type = 'bcmath' |
Definiert in Zeile 191 der Datei BigMath.php.
Copyright © 2003 - 2009 MyOOS [Shopsystem]. All rights reserved. MyOOS [Shopsystem] is Free Software released under the GNU/GPL License. Webmaster: info@r23.de (Impressum) |
|