Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Ralph
 
Posts: n/a
Default Maximum of a formula

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   Report Post  
Ralph
 
Posts: n/a
Default

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   Report Post  
Dana DeLouis
 
Posts: n/a
Default

(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   Report Post  
Bernard Liengme
 
Posts: n/a
Default

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   Report Post  
Ralph
 
Posts: n/a
Default

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   Report Post  
Dana DeLouis
 
Posts: n/a
Default

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   Report Post  
Ralph
 
Posts: n/a
Default

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
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
Simplify formula Luke Excel Worksheet Functions 37 May 6th 05 07:21 AM
Creating a check mark box MarthaSue Setting up and Configuration of Excel 18 April 28th 05 12:31 AM
Polynimial trandline formula CLR Charts and Charting in Excel 9 February 7th 05 07:31 PM
how do i write a formula and keep in in formula form, so it DOESN. norcalchick2207 Excel Discussion (Misc queries) 2 February 4th 05 08:38 PM
Match / Vlookup within an Array formula Hari Prasadh Excel Discussion (Misc queries) 3 February 3rd 05 04:37 PM


All times are GMT +1. The time now is 03:19 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"