private function MultiplicationNeedsCdot($left, $right)
    {
        if ($left instanceof FunctionNode) {
            return true;
        }

        if ($this->isNumeric($right)) {
            return true;
        }

        if ($right instanceof ExpressionNode && $this->isNumeric($right->getLeft())) {
            return true;
        }

        return false;
    }
private function MultiplicationNeedsCdot($left, $right)
    {
        if ($left instanceof FunctionNode) {
            return true;
        }

        if ($this->isNumeric($right)) {
            return true;
        }

        if ($right instanceof ExpressionNode && $this->isNumeric($right->getLeft())) {
            return true;
        }

        return false;
    }
private function MultiplicationNeedsCdot ( $ left , $ right ) { if ( $ left instanceof FunctionNode ) { return true ; } if ( $ this -> isNumeric ( $ right ) ) { return true ; } if ( $ right instanceof ExpressionNode && $ this -> isNumeric ( $ right -> getLeft ( ) ) ) { return true ; } return false ; }
Check if a multiplication needs an inserted \cdot or if
it can be safely written with implicit multiplication.

@retval bool
@param $left  AST of first factor
@param $right AST of second factor
Check if a multiplication needs an inserted \ cdot or if it can be safely written with implicit multiplication .