Input
2+({3-2]-1)
Output
2+({3-2}-1)
1 fixes made to the formula.
Input
[ sin(1) + rho) + phi (a + { 1 + [ 4 * (2 pi + 1) + b]]]
Output
[ sin(1) + rho] + phi (a + { 1 + [ 4 * (2 pi + 1) + b]})
3 fixes made to the formula.