Kelvin Stott
Active Member
- Joined
- Oct 26, 2010
- Messages
- 338
I am looking for the best (fastest as well as most reliable) algorithm to solve equations (find their roots, f(x) = 0, where 0 < x < 1), but have only been able to find the following 2 algorithms:
<x<1), but="" have="" only="" been="" able="" to="" find="" the="" following="" 2="" algorithms:
<x<1), and="" have="" found="" 2="" different="" approaches,="" each="" with="" their="" own="" pros="" cons:
1. Binary search, which finds f(x') closest to zero for each cycle (i = 1 to 50), where x' = x +/- 0.5^i
2. Classic Newton Raphson
The problem is that a binary search is very inefficient and can take too long (too many cycles), while Newton Raphson is unreliable as it depends on an arbitrary initial estimate. So I'm wondering: Is there a better (faster and more reliable) algorithm (VBA code) available that combines these two approaches?
Thanks for any help.</x<1),></x<1),>
<x<1), but="" have="" only="" been="" able="" to="" find="" the="" following="" 2="" algorithms:
<x<1), and="" have="" found="" 2="" different="" approaches,="" each="" with="" their="" own="" pros="" cons:
1. Binary search, which finds f(x') closest to zero for each cycle (i = 1 to 50), where x' = x +/- 0.5^i
2. Classic Newton Raphson
The problem is that a binary search is very inefficient and can take too long (too many cycles), while Newton Raphson is unreliable as it depends on an arbitrary initial estimate. So I'm wondering: Is there a better (faster and more reliable) algorithm (VBA code) available that combines these two approaches?
Thanks for any help.</x<1),></x<1),>
Last edited: