public function pow($num)
    {
        self::mustBeNumeric($num, 'Power calculus');

        return new N(
            pow(
                $this->value, 
                is_object($num) ? $num->value : $num
            )
        );
    }
public function pow($num)
    {
        self::mustBeNumeric($num, 'Power calculus');

        return new N(
            pow(
                $this->value, 
                is_object($num) ? $num->value : $num
            )
        );
    }
public function pow ( $ num ) { self :: mustBeNumeric ( $ num , 'Power calculus' ) ; return new N ( pow ( $ this -> value , is_object ( $ num ) ? $ num -> value : $ num ) ) ; }
Computes current number at given power.

Takes current number to raise it at given power.

Example:

$n = new N(3);
echo $n->pow(2); // '9'
echo $n->pow(3); // '27'

@see N::power() Alias
@see N::_square() Alias for sqaure
@see N::_cube() Alias for cube
@param numeric|N $num Power
@return N
@throws \InvalidArgumentException If given power is not numeric-like
value.
Computes current number at given power .