<html>
<head>
<base href="https://bugs.documentfoundation.org/">
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_UNCONFIRMED "
title="UNCONFIRMED - FORMULA: abs{x}^2 is formatted with unexpected operator precedence"
href="https://bugs.documentfoundation.org/show_bug.cgi?id=143881">143881</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>FORMULA: abs{x}^2 is formatted with unexpected operator precedence
</td>
</tr>
<tr>
<th>Product</th>
<td>LibreOffice
</td>
</tr>
<tr>
<th>Version</th>
<td>7.1.5.2 release
</td>
</tr>
<tr>
<th>Hardware</th>
<td>All
</td>
</tr>
<tr>
<th>OS</th>
<td>All
</td>
</tr>
<tr>
<th>Status</th>
<td>UNCONFIRMED
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>medium
</td>
</tr>
<tr>
<th>Component</th>
<td>Formula Editor
</td>
</tr>
<tr>
<th>Assignee</th>
<td>libreoffice-bugs@lists.freedesktop.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>mathematikus@gmx.de
</td>
</tr></table>
<p>
<div>
<pre>Description:
When generating a formula with the content abs{x}^2 it is formated like |x²|
and not as expected like |x|².
Steps to Reproduce:
1. open LO impress (or LO writer)
2. generate a new formula object, e.g. via the menu "Insert" - "Object" -
"Formula..."
3. type the following code: abs{x}^2
3b. alternativly: click onto the |o| icon in the "functions" category of the
GUI sidebar. Afterwards complete the suggested code fragment "abs{<?>}" to the
formula wanted: "abs{x}^2".
4. leave the formular editor to see the layouted result of this formula
Actual Results:
This formula is displayed as: |x²|
Expected Results:
I expected the curly brackets to "stick" the x to the abs function. Therefore I
expected the result to look like this: |x|²
Reproducible: Always
User Profile Reset: No
Additional Info:
I suggest to change the operator precedence in this case, such that the curly
brackets after the "abs" keyword stick the content of those brackets inside the
argument of the abs function. Then this would behave in the same way as
"log(x)^2".
Alternativly I suggest to change the output of the formula GUI sidebar to "abs
<?>" instead of "abs{<?>}". Removing the curly brackets form the suggested text
string would show me as user that I should not expect abs to behave like other
functions with argument (e.g. like the above log), but that I should care
myself to properly put bracket around, to achieve what I want.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>