Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Cameron PE
 
Posts: n/a
Default how do I use the solver to solve polynomial equations?

I am using Excel 2000
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
CJ
 
Posts: n/a
Default how do I use the solver to solve polynomial equations?

It is possible to use the quadratic formula for quadratic equations of the
form ax^2+bx+c. Solving for values of x use: (-b +or -(sqroot(b^2-4ac))/2a

"Cameron PE" wrote:

I am using Excel 2000

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
David J. Braden
 
Posts: n/a
Default how do I use the solver to solve polynomial equations?

Nice in theory, bad idea in practice. Quoting (with slight editing for
this context) from Press, et al, /Numerical Recipes in C/:
<quote If either a or c (or both) are small, then one of the roots will
involve the subtraction of b from a very nearly equal quantity (the
discriminant); you will get that root very inaccurately. The correct way
to compute the roots is
q = -(b + sgn(b)*sqrt(b^2-4a*c))*0.5

Then the two roots are
x1 = q/a and x2 = c/q
<end quote

You can get this straight off of the web by searching for "Numerical
Recipes in C", then look for Chapter 5. section 6 (Quadratic and Cubic
Equations), pp 183 ff.

Harlan Grove and I (and perhaps Jerry Lewis) had a thread on this some
time back. I wrote the equations above to accommodate VBA to an extent.
You may be able to rearrange things to make for a snappier function
call, but you get the idea (I hope).

Regards,
Dave Braden

CJ wrote:
It is possible to use the quadratic formula for quadratic equations of the
form ax^2+bx+c. Solving for values of x use: (-b +or -(sqroot(b^2-4ac))/2a

"Cameron PE" wrote:

I am using Excel 2000


--
Please keep response(s) solely within this thread.
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Making solver solve for different set variables and listing result Michael Bev Excel Discussion (Misc queries) 0 April 13th 06 12:22 PM
Increaseing Precision in polynomial trendline equations KevinW Charts and Charting in Excel 9 January 6th 06 06:41 PM
Can Solver solve this? nirani Excel Worksheet Functions 3 October 13th 05 02:03 PM
How do you use solver to solve a polynomial DW Excel Discussion (Misc queries) 1 June 7th 05 12:36 PM
solver can not solve polynomial eq. where one variable is five di. Amitava Excel Worksheet Functions 4 November 3rd 04 12:34 PM


All times are GMT +1. The time now is 09:47 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"