[Libreoffice-bugs] [Bug 143881] FORMULA: abs{x}^2 is formatted with unexpected operator precedence
bugzilla-daemon at bugs.documentfoundation.org
bugzilla-daemon at bugs.documentfoundation.org
Sat Aug 21 01:10:30 UTC 2021
https://bugs.documentfoundation.org/show_bug.cgi?id=143881
--- Comment #4 from dante19031999 at gmail.com ---
(In reply to Roman Kuznetsov from comment #3)
> (In reply to hardy from comment #2)
> > I can accept that you do not want to change the syntax of the formula
> > editor. I was fully aware of this workaround, and just wanted to help
> > improving LibreOffice.
>
>
> So, possibly we can change this one to an enhancement.
>
> Dante, what do you think about hardy's ideas?
Problems:
Changing the behavior would break old documents.
Changing the UI would break the visual editor because those brackets keep the
sentence together. The abs priority is the same as multiplication, so sums
inside of it would exit the abs the moment you type them.
The most I can do is change the code inserted via the UI to { abs { <?> } }.
I leave that decision up to you. The UI change is one line patch.
I also find that feature a bit troubling, however blackguards compatibility is
problematic.
And also, log(x)^2 is equivalent to { { log } { { ( x ) } ^ 2 } } for the
parser, but the problem is invisible. Math isn't right from mathematics POV, it
just looks like it.
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20210821/ed2f14d6/attachment.htm>
More information about the Libreoffice-bugs
mailing list