Lines Matching refs:x

165      * @param string|int|BigInteger\Engines\Engine $x Base-10 number or base-$base number if $base set.
168 public function __construct($x = 0, $base = 10)
172 if ($x instanceof self::$mainEngine) {
173 $this->value = clone $x;
174 } elseif ($x instanceof BigInteger\Engines\Engine) {
175 $this->value = new static("$x");
176 $this->value->setPrecision($x->getPrecision());
178 $this->value = new self::$mainEngine($x, $base);
271 * @param BigInteger $x
274 public function multiply(BigInteger $x)
276 return new static($this->value->multiply($x->value));
316 * Say you have (30 mod 17 * x mod 17) mod 17 == 1. x can be found using modular inverses.
329 * Say you have (30 mod 17 * x mod 17) mod 17 == 1. x can be found using modular inverses.
339 * @var BigInteger $x
344 'x' => new static($x),
481 * Although one might think !$x->compare($y) means $x != $y, it, in fact, means the opposite. The reason for this
484 * $x > $y: $x->compare($y) > 0
485 * $x < $y: $x->compare($y) < 0
486 * $x == $y: $x->compare($y) == 0
488 * Note how the same comparison operator is used. If you want to test for equality, use $x->equals($y).
490 * {@internal Could return $this->subtract($x), but that's not as fast as what we do do.}
506 * @param BigInteger $x
509 public function equals(BigInteger $x)
511 return $this->value->equals($x->value);
527 * @param BigInteger $x
530 public function bitwise_and(BigInteger $x)
532 return new static($this->value->bitwise_and($x->value));
538 * @param BigInteger $x
541 public function bitwise_or(BigInteger $x)
543 return new static($this->value->bitwise_or($x->value));
549 * @param BigInteger $x
552 public function bitwise_xor(BigInteger $x)
554 return new static($this->value->bitwise_xor($x->value));
586 * Instead of the top x bits being dropped they're appended to the shifted bit string.
599 * Instead of the bottom x bits being dropped they're prepended to the shifted bit string.
818 * @param int $x
821 public function testBit($x)
823 return $this->value->testBit($x);
873 return function (BigInteger $x) use ($func) {
874 return new static($func($x->value));