Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Newton–Raphson method

Status
Not open for further replies.

Engineer32

Programmer
Jul 14, 2008
3
ES
Hi everybody!
I'm new in using Excel together with VB utilities and my problem is the following one:
I want to program the Newton–Raphson method (or a similar one) in a excel spreadsheet. The point is that the required value (let’s say cell D24) depends on the cell on the left (cell C24) and on the cell above (cell D23). The next step would be doing the same but for the cell on the right (cell E24) which would be depending on cell D24 and on cell E23. In fact, I’ve already solve it with the Maple-Excel Add in (command “fsolve”) but it works very slow.
Does anybody have any idea? Does anybody know how to program the Newton–Raphson method in VBA?


Thank you
 
Hi Engineer32,

Given what the Newton–Raphson method has to do, it's not surprising that it can take a while to do its thing - especially if there are a lot of data to work with.

It's almost certain your Maple-Excel Addin was written with vba - or maybe even something else with better optimisations, and you're unlikely to get a significant improvement by writing your own version.

FWIW, a web search on 'Newton–Raphson vba' turns up lots of hits. See, for example:
and

Cheers

[MS MVP - Word]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top