Auth_OpenID_BcMathWrapper Klassenreferenz

Abgeleitet von Auth_OpenID_MathLibrary.

Zusammengehörigkeiten von Auth_OpenID_BcMathWrapper:

Collaboration graph
[Legende]

Ö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'

Ausführliche Beschreibung

Definiert in Zeile 190 der Datei BigMath.php.


Dokumentation der Elementfunktionen

_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 
)

Definiert in Zeile 193 der Datei BigMath.php.

00194     {
00195         return bcadd($x, $y);
00196     }

cmp ( x,
y 
)

Definiert in Zeile 208 der Datei BigMath.php.

00209     {
00210         return bccomp($x, $y);
00211     }

div ( x,
y 
)

Definiert in Zeile 228 der Datei BigMath.php.

00229     {
00230         return bcdiv($x, $y);
00231     }

init ( number,
base = 10 
)

Definiert in Zeile 213 der Datei BigMath.php.

00214     {
00215         return $number;
00216     }

mod ( base,
modulus 
)

Definiert in Zeile 218 der Datei BigMath.php.

00219     {
00220         return bcmod($base, $modulus);
00221     }

mul ( x,
y 
)

Definiert in Zeile 223 der Datei BigMath.php.

00224     {
00225         return bcmul($x, $y);
00226     }

pow ( base,
exponent 
)

Definiert in Zeile 203 der Datei BigMath.php.

00204     {
00205         return bcpow($base, $exponent);
00206     }

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 
)

Definiert in Zeile 198 der Datei BigMath.php.

00199     {
00200         return bcsub($x, $y);
00201     }

toString ( num  ) 

Definiert in Zeile 261 der Datei BigMath.php.

00262     {
00263         return $num;
00264     }


Dokumentation der Datenelemente

$type = 'bcmath'

Definiert in Zeile 191 der Datei BigMath.php.


Die Dokumentation für diese Klasse wurde erzeugt aufgrund der Datei:
Copyright © 2003 - 2009 MyOOS [Shopsystem]. All rights reserved.
MyOOS [Shopsystem] is Free Software released under the GNU/GPL License.

Webmaster: info@r23.de (Impressum)
doxygen