Math Is Fun Forum

  Discussion about math, puzzles, games and fun.   Useful symbols: ÷ × ½ √ ∞ ≠ ≤ ≥ ≈ ⇒ ± ∈ Δ θ ∴ ∑ ∫ • π ƒ -¹ ² ³ °

You are not logged in.

#1 2008-07-01 11:22:46

purev1olence
Member
Registered: 2008-06-03
Posts: 1

Need help on my JS Quintic Equation Calculator

I need help on my Quintic Equation Calculator. It uses the Netwon-Raphson method to approxmate the root and I have mainly got this all right. But heres the deal, sometimes the guess is real far away and I cant get it to converge quick enough, although I can press the Solve button again and it gives me the right answer. I have also noticed that sometimes it takes >5,000 tries before the answer converges. Can anyone help me find a new intial guess algorithm that will converge within 5,000 iterations? Thanks.

- Brian K

Quintic Equation Calculator: http://www.freewebs.com/brianjs/quinticequationcalculator.htm

Offline

#2 2008-07-02 05:53:57

Ricky
Moderator
Registered: 2005-12-04
Posts: 3,791

Re: Need help on my JS Quintic Equation Calculator

You could use the value at a random point an it's derivative to find which direction on the complex plain will get you closer to 0.  Iterate over this with step sizes based upon the magnitude of the value and derivative will help to ensure you don't accidentally step over any.


"In the real world, this would be a problem.  But in mathematics, we can just define a place where this problem doesn't exist.  So we'll go ahead and do that now..."

Offline

#3 2008-07-02 09:27:24

purev1olence
Member
Registered: 2008-06-03
Posts: 1

Re: Need help on my JS Quintic Equation Calculator

Thansk, but I dont understand :\ im only 14

Offline

Board footer

Powered by FluxBB