Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
solving for a real root using Brent's method
12-03-2016, 03:19 PM
Post: #1
solving for a real root using Brent's method
This HP Prime program demonstrates how to interact with a routine named brent which solves for a single real root of a user-defined, one-dimensional nonlinear function coded as y = fx(x) using Brent's numerical method.

Here's the output for an example that solves for the root of cosine(x) between 0 and pi. The displayed error is the difference between pi/2 and the value computed by the brent software.

brent's root-finding method

root = 1.57079632679

error = 0.00000000001

The attached zip file includes a PDF document with additional information about this algorithm.


Attached File(s)
.zip  demo_brent.zip (Size: 83.45 KB / Downloads: 1)
Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


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