newRPL  build 1255 released! [updated to 1299]

10032018, 01:18 PM
(This post was last modified: 10032018 01:20 PM by Claudio L..)
Post: #286




RE: newRPL  build 1089 released! [update:build 1111]
(10032018 03:02 AM)Claudio L. Wrote:(10022018 08:04 PM)okkama Wrote: integrate cos(x^x) from x=4 to 5 The result seems to be correct, depending on your requested error threshold. This particular case since it's about thousands of additions cancelling each other you just need to request additional precision and be patient... I tried 0.00001 and not surprisingly I got 0.00099 as an answer. Gave it 4 more zeros and got 0.0014, 3 more zeros and... 0.001732449205, but I had to wait over 5 minutes to get that answer. It's just that the extremely high frequency of this function means your step needs to be exponentially smaller to get any meaningful result out of it. Why does it work better in degrees? Because the frequency is much lower! 5^5 = 3125, and dividing by 360 is a relatively small number versus dividing by 2PI. EDIT: Basically, when dealing with periodic functions, make sure your step is such that the algorithm won't skip over a bunch of cycles. 

« Next Oldest  Next Newest »

User(s) browsing this thread: 4 Guest(s)