Bug 49506 - Formula editor: abs{x}^2 rendered incorrectly
Summary: Formula editor: abs{x}^2 rendered incorrectly
Status: RESOLVED NOTABUG
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Formula Editor (show other bugs)
Version:
(earliest affected)
3.5.2 release
Hardware: x86 (IA32) Linux (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-05-04 11:38 UTC by Adrian Schlatter
Modified: 2012-05-06 06:44 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
document with the mentioned formula rendered incorrectly. (10.70 KB, application/vnd.oasis.opendocument.text)
2012-05-04 11:38 UTC, Adrian Schlatter
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Adrian Schlatter 2012-05-04 11:38:03 UTC
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.
Comment 1 Jean-Baptiste Faure 2012-05-06 00:06:04 UTC
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
Comment 2 Adrian Schlatter 2012-05-06 05:34:24 UTC
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.
Comment 3 Jean-Baptiste Faure 2012-05-06 06:44:54 UTC
(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