Home |
Search |
Today's Posts |
#1
![]() |
|||
|
|||
![]()
I have a 6th order polynomial fit of data points. I want to find the number
that would give the maximum value of this curve. Is there a formula that would do this without creating a large table and evaluating the table for the Max? (eg. derivative where slope = 0 indicates maximum) |
#2
![]() |
|||
|
|||
![]()
Solver will do it. Is there any way to automate Solver so that it works like
a worksheet function? "Ralph" wrote: I have a 6th order polynomial fit of data points. I want to find the number that would give the maximum value of this curve. Is there a formula that would do this without creating a large table and evaluating the table for the Max? (eg. derivative where slope = 0 indicates maximum) |
#3
![]() |
|||
|
|||
![]()
(eg. derivative where slope = 0 indicates maximum)
Hi. Just to mention. A derivative of zero on a 6th order polynomial means it could be either a Maximum, or a Minimum. You would want to test the 5 solution points, and pick the largest. If you take the second derivative, and substitute each of the 5 solutions, a positive number would indicate a relative minimum, and a negative number would indicate a relative maximum. Not sure where you want to go from here. -- Dana DeLouis Win XP & Office 2003 "Ralph" wrote in message ... I have a 6th order polynomial fit of data points. I want to find the number that would give the maximum value of this curve. Is there a formula that would do this without creating a large table and evaluating the table for the Max? (eg. derivative where slope = 0 indicates maximum) |
#4
![]() |
|||
|
|||
![]()
How is your calculus?
Let do it with a cubic d*x3+c*x2+b*x+a Differentiate to give 3d*x2+2c*x+b This will = 0 if the value is min or max Now we could solve this quadratic but with a 6th order fit the differential will be a 5th order equation for which there is no closed solution. You cannot make Solver behave like a function but you can make a macro to run Solver (look in MS Knowledge database, I think there is an example there; or try www.solver.com) best wishes -- Bernard V Liengme www.stfx.ca/people/bliengme remove caps from email "Ralph" wrote in message ... I have a 6th order polynomial fit of data points. I want to find the number that would give the maximum value of this curve. Is there a formula that would do this without creating a large table and evaluating the table for the Max? (eg. derivative where slope = 0 indicates maximum) |
#5
![]() |
|||
|
|||
![]()
I am not aware that Excel can perform derivatives or integrals. Solver will
find the max for me but I need to run it "manually" to use the results in further operations. ( I have about 19 of these curve fits in 1 file/7 worksheets). It would be nice to have an automatic way to do this. "Dana DeLouis" wrote: (eg. derivative where slope = 0 indicates maximum) Hi. Just to mention. A derivative of zero on a 6th order polynomial means it could be either a Maximum, or a Minimum. You would want to test the 5 solution points, and pick the largest. If you take the second derivative, and substitute each of the 5 solutions, a positive number would indicate a relative minimum, and a negative number would indicate a relative maximum. Not sure where you want to go from here. -- Dana DeLouis Win XP & Office 2003 "Ralph" wrote in message ... I have a 6th order polynomial fit of data points. I want to find the number that would give the maximum value of this curve. Is there a formula that would do this without creating a large table and evaluating the table for the Max? (eg. derivative where slope = 0 indicates maximum) |
#6
![]() |
|||
|
|||
![]()
One thing that comes to mind about Solver is that in a 6th order polynomial,
Solver may zero in on the wrong local minimum/maximum. Do you have a lot of data points? Maybe you could smooth your curve with a 3 degree polynomial, or perhaps run a cubic spline equation. -- Dana DeLouis Win XP & Office 2003 "Ralph" wrote in message ... Solver will do it. Is there any way to automate Solver so that it works like a worksheet function? "Ralph" wrote: I have a 6th order polynomial fit of data points. I want to find the number that would give the maximum value of this curve. Is there a formula that would do this without creating a large table and evaluating the table for the Max? (eg. derivative where slope = 0 indicates maximum) |
#7
![]() |
|||
|
|||
![]()
Thanks for the warning on Solver. My data is fairly smooth with minor
ripples so I don't think it will pick a bad solution. Where do I find cubic spline info? "Dana DeLouis" wrote: One thing that comes to mind about Solver is that in a 6th order polynomial, Solver may zero in on the wrong local minimum/maximum. Do you have a lot of data points? Maybe you could smooth your curve with a 3 degree polynomial, or perhaps run a cubic spline equation. -- Dana DeLouis Win XP & Office 2003 "Ralph" wrote in message ... Solver will do it. Is there any way to automate Solver so that it works like a worksheet function? "Ralph" wrote: I have a 6th order polynomial fit of data points. I want to find the number that would give the maximum value of this curve. Is there a formula that would do this without creating a large table and evaluating the table for the Max? (eg. derivative where slope = 0 indicates maximum) |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Simplify formula | Excel Worksheet Functions | |||
Creating a check mark box | Setting up and Configuration of Excel | |||
Polynimial trandline formula | Charts and Charting in Excel | |||
how do i write a formula and keep in in formula form, so it DOESN. | Excel Discussion (Misc queries) | |||
Match / Vlookup within an Array formula | Excel Discussion (Misc queries) |