WP 34S solve an integral
Post: #6
 BarryMead Senior Member Posts: 416 Joined: Feb 2014
RE: WP 34S solve an integral
This version of the program uses label A as the start of the program and you put the
Target integral value into the X , the Upper solve guess bound in Y and the Lower solve guess Bound in Z and press A

Code:
LBL A STO 00                  //Save target integral result desired DROP                    //Lower stack to get Upper/Lower solve guess bounds SLV 00 RTN ERR 20                  //If solve fails to find a root show this error LBL 00 0                       //Lower bound of integral (from zero to solve guess) x <> Y ∫ 01 RCL 00                  //Value to solve for (to get upper integral bound) x <> Y -                       //Integral function returns zero when integral equals R00 target value RTN LBL 01 x² RTN

Then Press 0 Enter 5 Enter 10 A (Solves for X where the integral of x² from zero to X = 10) = 3.10723250595
Try 3 Enter 7 Enter 20 A (Solves for X where integral of x² from zero to X = 20) = 3.91486764117

I have found that even if you pick really bad guesses for the solve bounds, it usually still finds the right answer, but takes a little longer.
 « Next Oldest | Next Newest »

 Messages In This Thread WP 34S solve an integral - lrdheat - 04-23-2015, 07:27 PM RE: WP 34S solve an integral - lrdheat - 04-23-2015, 08:43 PM RE: WP 34S solve an integral - BarryMead - 04-23-2015, 08:50 PM RE: WP 34S solve an integral - BarryMead - 04-23-2015 09:05 PM RE: WP 34S solve an integral - Dieter - 04-24-2015, 12:34 PM RE: WP 34S solve an integral - BarryMead - 04-24-2015, 02:46 PM RE: WP 34S solve an integral - CR Haeger - 04-23-2015, 10:28 PM RE: WP 34S solve an integral - BarryMead - 04-23-2015, 10:34 PM RE: WP 34S solve an integral - Dieter - 04-23-2015, 10:46 PM RE: WP 34S solve an integral - Marcus von Cube - 04-24-2015, 08:22 AM RE: WP 34S solve an integral - walter b - 04-24-2015, 08:57 AM RE: WP 34S solve an integral - CR Haeger - 04-24-2015, 01:24 PM RE: WP 34S solve an integral - Dieter - 04-24-2015, 12:16 PM RE: WP 34S solve an integral - CR Haeger - 04-24-2015, 01:01 PM RE: WP 34S solve an integral - Dieter - 04-24-2015, 01:09 PM RE: WP 34S solve an integral - rprosperi - 04-24-2015, 05:53 PM RE: WP 34S solve an integral - Thomas_Sch - 04-24-2015, 06:22 PM RE: WP 34S solve an integral - Dieter - 04-24-2015, 06:37 PM RE: WP 34S solve an integral - Dieter - 04-25-2015, 10:48 AM RE: WP 34S solve an integral - BarryMead - 04-25-2015, 06:59 PM RE: WP 34S solve an integral - Dieter - 04-25-2015, 08:54 PM RE: WP 34S solve an integral - lrdheat - 04-24-2015, 02:11 AM RE: WP 34S solve an integral - Thomas_Sch - 04-24-2015, 06:19 AM RE: WP 34S solve an integral - CR Haeger - 04-24-2015, 01:20 PM RE: WP 34S solve an integral - Thomas_Sch - 04-24-2015, 07:07 PM RE: WP 34S solve an integral - Dieter - 04-24-2015, 07:17 PM RE: WP 34S solve an integral - Thomas_Sch - 04-24-2015, 07:30 PM RE: WP 34S solve an integral - walter b - 04-24-2015, 10:12 PM RE: WP 34S solve an integral - Thomas_Sch - 04-24-2015, 10:27 PM RE: WP 34S solve an integral - lrdheat - 04-25-2015, 09:09 PM

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