ans =
I replicate the problem.
You might be amused to examine
regexprep(char(feval(symengine, 'expose', 'simplify')), '\\n', '\n')
but the result is a bit long, and it is not immediately obvious to me where the problem is.
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!