public function polarQuadrant()
    {
        $signR = ($this->value['real']->numerator()->get() > 0 ? '+' : '-');
        $signI = ($this->value['imaginary']->numerator()->get() > 0 ? '+' : '-');
        $ret = 0;
        switch ("{$signR}{$signI}") {
            case '++':
                $ret = 1;
                break;
            case '-+':
                $ret = 2;
                break;
            case '--':
                $ret = 3;
                break;
            case '+-':
                $ret = 4;
                break;
        }

        return $ret;
    }
public function polarQuadrant()
    {
        $signR = ($this->value['real']->numerator()->get() > 0 ? '+' : '-');
        $signI = ($this->value['imaginary']->numerator()->get() > 0 ? '+' : '-');
        $ret = 0;
        switch ("{$signR}{$signI}") {
            case '++':
                $ret = 1;
                break;
            case '-+':
                $ret = 2;
                break;
            case '--':
                $ret = 3;
                break;
            case '+-':
                $ret = 4;
                break;
        }

        return $ret;
    }
public function polarQuadrant ( ) { $ signR = ( $ this -> value [ 'real' ] -> numerator ( ) -> get ( ) > 0 ? '+' : '-' ) ; $ signI = ( $ this -> value [ 'imaginary' ] -> numerator ( ) -> get ( ) > 0 ? '+' : '-' ) ; $ ret = 0 ; switch ( "{$signR}{$signI}" ) { case '++' : $ ret = 1 ; break ; case '-+' : $ ret = 2 ; break ; case '--' : $ ret = 3 ; break ; case '+-' : $ ret = 4 ; break ; } return $ ret ; }
Returns the polar quadrant for the complex number
Returns 1, 2, 3 or 4 dependent on the quadrant

@return int
Returns the polar quadrant for the complex number Returns 1 2 3 or 4 dependent on the quadrant