As I run the chatterbot with math logic and evaluate the following sentences:
“10 plus 2 squared times 3”
“10 plus (2 squared) times 3”
must have the same results with 22.
However, the previous answer is 2,985,984, and the latter one is 22.
I think it happens because of mathparse, especially to_postfix() (the precedence of ^ and others)