Bug 116588 - Power inside of absolute value instead of outside
Summary: Power inside of absolute value instead of outside
Status: RESOLVED NOTABUG
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Formula Editor (show other bugs)
Version:
(earliest affected)
5.4.6.2 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-03-23 15:13 UTC by rugk
Modified: 2018-03-23 19:37 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description rugk 2018-03-23 15:13:16 UTC
When writing this:

abs{ z } ^ 2

It is shown as:
| z² |

However, that is of course not what I wrote. It should be shown as:
|z|²

(also happens with other numbers/variables, not only 2. Just sued for demonstration purposes here.)

A workaround is to write:
{abs{ z }} ^ 2

But IMHO this is not intended. If I want to have the power inside of the absolute number, I'd write it like that:
abs{ z ^ 2 }

And if you say it makes no difference mathematically, you are wrong. For real numbers, maybe, but not for complex ones e.g., where the "absolute number" has a different definition.

On Fedora 27 with v5.4.6.2-3.fc27 here.
Comment 1 Jacques Guilleron 2018-03-23 15:57:19 UTC
Hi rugk,
Why not this way:
{abs r}^2
Comment 2 rugk 2018-03-23 16:41:37 UTC
Hmm, possible. Is this how it is supposed to be used?

I.e. is the way I write it an invalid syntax?
Because it usually works in all other cases. And when you select the "absolute mode" from the menu it also shows you this syntax: abs{<?>} (i.e. not this {abs <?>}.)
Comment 3 Jacques Guilleron 2018-03-23 17:18:07 UTC
An other way is to write:
lline x rline  rSup {2}
Is it better?
Comment 4 rugk 2018-03-23 17:32:30 UTC
I don't want support/alternative ways to write it. This is a bug report.

I consider the behaviour of the application to be wrong, when I write abs{ z } ^ 2. It should always be shown as |z|².
Comment 5 V Stuart Foote 2018-03-23 19:37:38 UTC
Sorry, it is the syntax as provided in StarMath/MathML

=> NAB