Question: How to recognize functional operator


I have small script that uses syntax checker mint and latex command and latex to convert an expression in maple syntax to an image. But functional operators are causing me troubles.

Suppose I want to enter the equation  (x+1)*(x-1) and I forgot to use the star (*) for multiplication. The result (x+1)(x-1) is also correct because Maple thinks that I am using functional operator x. But I would like to evaluate this cas as wrong syntax. So I have to detect functional operators (somehow) but I don't want to detect operators such as +, -, * and so on.

Any idea? Thanks for help.

Please Wait...