/** * {@inheritDoc} * @see \PhpObject\Core\IInteger::power($number) */ public function power(INumber $number) : IInteger { return new Integer((int) pow($this->getPrimitive(), $number->getPrimitive())); }
/** * {@inheritDoc} * @see \PhpObject\Core\IFloat::logarithm($number) */ public function logarithm(INumber $number) : IFloat { return new Float(log($this->getPrimitive(), $number->toFloat()->getPrimitive())); }