Created attachment 61044 [details] document with the mentioned formula rendered incorrectly. The formula abs{x}^2 is rendered as |x^2|. I expect it to be rendered as |x|^2. See example in attached document.
I think it is not a bug, Math editor is not a software for computer algebra. To obtain |x|^2 you need to write {abs x}^2 or {abs (x)}^2 if you need to have something more complicated instead of x. Please note that Math editor does not set parenthesis for you. if you are OK, I will close this bug report as Not-A-Bug Best regards. JBF
I understand very well that formula editor does not do algebra. Indeed, if it *would* do algebra (e.g. by replacing a^2+2ab+b^2 by (a+b)^2 I would judge that a bug. What is the philosophy regarding parentheses in formula editor? I expect that abs{x}^2 results in |x|^2 and that abs{x^2} results in |x^2|. I have verified that {abs x}^2 works, though.
(In reply to comment #2) > I understand very well that formula editor does not do algebra. Indeed, if it > *would* do algebra (e.g. by replacing a^2+2ab+b^2 by (a+b)^2 I would judge that > a bug. > > What is the philosophy regarding parentheses in formula editor? I expect that > abs{x}^2 results in |x|^2 and that abs{x^2} results in |x^2|. I have verified > that {abs x}^2 works, though. If you read French, please have a look at : http://wiki.documentfoundation.org/FR/Math/Parentheses best regards. JBF