function NativeCalculator::divQ
Overrides Calculator::divQ
2 calls to NativeCalculator::divQ()
- NativeCalculator::modPow in vendor/
brick/ math/ src/ Internal/ Calculator/ NativeCalculator.php - Algorithm from: https://www.geeksforgeeks.org/modular-exponentiation-power-in-modular-a…
- NativeCalculator::sqrt in vendor/
brick/ math/ src/ Internal/ Calculator/ NativeCalculator.php - Adapted from https://cp-algorithms.com/num_methods/roots_newton.html
File
-
vendor/
brick/ math/ src/ Internal/ Calculator/ NativeCalculator.php, line 119
Class
- NativeCalculator
- Calculator implementation using only native PHP code.
Namespace
Brick\Math\Internal\CalculatorCode
public function divQ(string $a, string $b) : string {
return $this->divQR($a, $b)[0];
}