D24972: Keep cumulated error negligible for rapidly increasing functions
Yuri Chornoivan
noreply at phabricator.kde.org
Sat Nov 23 13:07:38 GMT 2019
yurchor added a comment.
Just some considerations:
1. dx ~ (x_max-x_min)/viewport_width (about 0.001 for relatively low values of x).
2. Error for Simpson's rule (Runge-Kutta method degrades to this rule in case of y'(x)=f(x) integration) is f^(4)(\xi)*dx^5/2880.
3. To have cumulative error less than 1 for a viewport width 1000 it is enough to satisfy f^(4)(\xi)*dx^5/2880 < 0.001.
4. If f^(4)(x) is of dy/dx^4 order so it is enough to multiply it with dx^2 to approximately satisfy 3. under the above-mentioned conditions.
REPOSITORY
R334 KmPlot
REVISION DETAIL
https://phabricator.kde.org/D24972
To: yurchor, #kde_edu
Cc: aacid, cfeck, kde-edu, narvaez, apol
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-edu/attachments/20191123/c0aca62f/attachment.html>
More information about the kde-edu
mailing list