WP 34S solve an integral

04242015, 06:37 PM
(This post was last modified: 04242015 07:20 PM by Dieter.)
Post: #23




RE: WP 34S solve an integral
(04242015 06:22 PM)Thomas_Sch Wrote: A beginners question: The rounding is done at the very end of the function routine, right before the result is returned to SLV: Code: LBL A However, limiting the execution time of the Integrate function is much more important. Here the number of iterations depends on the display setting. So be sure to set something like SCI 4 or FIX 5. There is not much sense in having the integral calculated to 12 digits when finally 10 – this is rounded to 5 digits. ;) Remember: the execution time of Integrate is directly influenced by the display setting. The result is returned as soon as it matches display precision. On the other hand, Solve always tries to return a fullaccuracy result, no matter which display format is set. That's why speeding up Solve requires manual rounding. Addendum: in this particular case it would make sense to have Solve quit at the same accuracy level as Integrate, i.e. as soon as the result rounded to the current display setting becomes zero. This can be done with a simple ROUND command (rounds to display precision, unliike RDP that rounds to the number of specified digits). Or, even more elegant, use the dedicated x≈0? test which directly tests whether the displayrounded value of x is zero: Code: ... Now simply set FIX 4 or FIX 5 and you're done. Please note that x≈0? is useless in display modes other than FIX. So don't use SCI, ENG or ALL here. Dieter 

« Next Oldest  Next Newest »

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