Version: (using KDE KDE 3.5.5) Installed from: Gentoo Packages Compiler: gcc (GCC) 4.1.1 (Gentoo 4.1.1-r1) OS: Linux 1. Enter a function such as f(x) = 1 2. Right click it, and select "Calculate integral" 3. Enter e.g. 0 and 5 as the bounds, and calculate the result KmPlot says that the integral is 0.02... So far, all integrals I've tried to calculate were completely wrong.
Created attachment 18319 [details] Screenshot
I cannot reproduce this bug using KmPlot from KDE 3.5.5. Which version of KDE is the KmPlot you are using from? - There were some fixes for integration released in KDE 3.5.3.
Sorry, I didn't notice your KDE version was already listed in the bug reported. I can't reproduce the bug, and assuming you're using KmPlot from KDE 3.5.5, I don't know what specifically is causing it. But it has probably been fixed in trunk (the version that will end up in KDE 4), at least, since that has undergone a lot of changes and fixes.
I'm still getting the same results in KDE 3.5.6 in Kubuntu.
Surprisingly, a completely different function gives me also a result of 0.002. f(x)=1/(sqrt(1+x^2)) and integrating from 0 to 1 gives 0.002 while it should be approx. 0.88.
The fix for bug 121051 seems to cause this problem.
To be more specific, commit 529192 seems to be the cause. Reverting it results in a correct result and the area is actually being painted under the function. Currently, only the left and right borders of the area are painted while the inner part remains uncolored.
This bug has also been reported in Debian as #442281.
Can you please recheck whether this bug still appears with kmplot from KDE 4.1 or later?
Hi! On KDE 4.2 area plot is calculated correctly with proposed test case and other simple functions. Otherwise I notice a precision (imho) problem with symmetrical function and interval. For example, test f(x) = cos(x) from 0 to pe.. The correct integral should be 0 and not 9,18016e-15. Another example is f(x) = x from -1 to 1: the area is -5.44534e-15 instead of 0.
Dear Bug Submitter, This bug has been stagnant for a long time. Could you help us out and re-test if the bug is valid in the latest version? I am setting the status to NEEDSINFO pending your response, please change the Status back to REPORTED when you respond. Thank you for helping us make KDE software even better for everyone!
Dear Bug Submitter, This is a reminder that this bug has been stagnant for a long time. Could you help us out and re-test if the bug is valid in the latest version? Thank you for helping us make KDE software even better for everyone!
This didn’t happen to me so far, and it appears that no one else commented on this over the last year, so it seems this problem is fixed. However, there is another problem in the area calculation window: The function list is displayed wrong. I will open a new bug for that.