https://bugs.kde.org/show_bug.cgi?id=429110
Bug ID: 429110 Summary: "atan2" function doesn't work as expected Product: LabPlot2 Version: 2.8.1 Platform: Debian stable OS: Linux Status: REPORTED Severity: normal Priority: NOR Component: frontend Assignee: alexander.se...@web.de Reporter: ores...@tsc.upc.edu Target Milestone: --- SUMMARY The "atan2" function does not yeld the expected values STEPS TO REPRODUCE 1. Create new project -> Add a worksheet -> Add an xy-plot -> Add a new xy-curve from a mathematical equation. 2. As equation, type: "180*atan(1)/pi" and press "recalculate" button. 3. Should appear a stright line plot of value 45 as arctan(1)=45 degrees. 4. Now change the equation to "180*atan2(1,1)/pi", and press "recalculate" again. The plot should not change, as the "atan2" function is supposed to be defined as "atan2(Y,X) = atan(Y/X)" but being quadrant-aware. Instead, a straight-line plot of 90 degrees appears, which is erroneous. OBSERVED RESULT A value of 90 degrees EXPECTED RESULT A value of 45 degrees SOFTWARE/OS VERSIONS Linux/KDE Plasma: (available in About System) KDE Plasma Version: 5.14.5 KDE Frameworks Version: 5.54.0 Qt Version: 5.11.3 ADDITIONAL INFORMATION Labplot2 v2.8.1 compiled from source (git commit d0573f64a0) -- You are receiving this mail because: You are watching all bug changes.