Bisection Plus Program - Printable Version +- HP Forums (https://www.hpmuseum.org/forum) +-- Forum: HP Software Libraries (/forum-10.html) +--- Forum: HP Prime Software Library (/forum-15.html) +--- Thread: Bisection Plus Program (/thread-405.html) |
Bisection Plus Program - Namir - 01-11-2014 06:00 PM This program implements the new Bisection Plus algorithm for the HP-Prime. Click here to download a pdf file that discusses the new algorithm. Algorithm Code: Given f(x)=0, the root-bracketing interval [A,B], and the tolerance for the root of f(x): Listing Code: EXPORT FX(X) Example Find the root for f(x)=exp(x)-3*X^2 in teh range [3,4]. 1. Type "BISPLS(3,4,1E-8) and press [ENTER]. 2. The calculator displays {3.7330790286, 8} The first number in the resulting list is the root. The second number is the iterations count. Customization Edit the code of function FX to implement the f(x) you want to work with. |