Post Reply 
Problem with integral on WP 34s
09-12-2021, 04:00 PM
Post: #14
RE: Problem with integral on WP 34s
(09-11-2021 06:14 PM)lrdheat Wrote:  More poor results, this with an endpoint. While the HP 30b unit converted to a WP 34S does fine, the WP 34S app for iPad produces an infinity error as does the WP 34S on the DM 42. Having the 1/0 occur at an endpoint precludes doing the integral in parts.

The integral from 0 to pi for 1/sqrt(1+cos(x)) (radian mode) should be 2*sqrt(2)~=2.8284

The HP 42S does fine as does the Free 42 app on my iPad.

The iPad and DM 42 versions of WP 34S should be used with caution for these types of problems.

Try setting Flag D - this allows for infinite or NAN results without halting program execution. Quoting from the integrate.wp34s xrom code file:
Quote:// - if the user has set the D flag, many errors when evaluating the
// integrand (say 0/0 or 1/0, overflows or ...) will not raise an error,
// but return infinite or NaN instead. Such conditions will be detected
// by this program that will continue the computation simply ignoring
// the offending point
On doing this, I get 2.8284 on my DM42 WP34S for your integral.

Nigel (UK)
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
Problem with integral on WP 34s - lrdheat - 09-08-2021, 01:43 AM
RE: Problem with integral on WP 34s - Nigel (UK) - 09-12-2021 04:00 PM



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