I want to check if two expressions are equal to each other.
For example 3a+5b === 5b+3a should return 'true'.
I'm trying to use a function:
CloudDeploy[
APIFunction[
{
"x" ->Restricted["SemanticExpression", All, Automatic,"equalityTestingContext`"],
"y" ->Restricted["SemanticExpression", All, Automatic,"equalityTestingContext`"]
},
TrueQ[Simplify[#x == #y]] &
],
Permissions -> "Public"
]
This is returning true for given example but fails for checking for example 5aewq+3(b^3) === 3(b^3)+5aqwe, returning 'No result — at least one parameter could not be interpreted'.
What should be changed in above code to allow comparison of more complex expressions? Maybe 'Restricted' interpreter?