[Libreoffice-bugs] [Bug 126734] New: Function atan2 has its arguments reversed.
bugzilla-daemon at bugs.documentfoundation.org
bugzilla-daemon at bugs.documentfoundation.org
Tue Aug 6 18:42:20 UTC 2019
https://bugs.documentfoundation.org/show_bug.cgi?id=126734
Bug ID: 126734
Summary: Function atan2 has its arguments reversed.
Product: LibreOffice
Version: 6.2.5.2 release
Hardware: All
OS: Windows (All)
Status: UNCONFIRMED
Severity: normal
Priority: medium
Component: Calc
Assignee: libreoffice-bugs at lists.freedesktop.org
Reporter: photius829 at yahoo.com
Description:
atan2(y,x) should return the same as atan(y/x) for x > 0.
Instead, it returns atan(x/y).
See https://en.wikipedia.org/wiki/Atan2 under "Definition and computation."
Steps to Reproduce:
1. Enter =atan2(1,2) in a cell.
2. Enter =atan(0.5) in another cell.
3. Enter =atan(2) in another cell.
Actual Results:
atan2(1,2) returns 1.10714871779409.
atan(0.5) returns 0.463647609000806.
atan(2) returns 1.10714871779409.
Expected Results:
atan2(1,2) returns 0.463647609000806.
atan(0.5) returns 0.463647609000806.
atan(2) returns 1.10714871779409.
Reproducible: Always
User Profile Reset: No
Additional Info:
[Information automatically included from LibreOffice]
Locale: en-US
Module: SpreadsheetDocument
[Information guessed from browser]
OS: Windows (All)
OS is 64bit: no
--
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/20190806/4603bfdc/attachment.html>
More information about the Libreoffice-bugs
mailing list