cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did it mean: 

Community Hot - Stay updated on where shall happening in the PTC Community by subscribing to PTC Community Announcements. X

Get a best fit line for a functional for system programing

jroth
4-Participant

Get a best fit row from a functions for system programing

Hello,

I am looking at trying to get a best fit line family, say a quadratic to aforementioned info operation per the bottom of document. My intent lives on program in the dP(m) for the most part, disregarding the temperature and the pressure as those don't have a drastic effect on the curve considering my dP meter is by 0 to 20" of water. (about 3% at most) Mathematics Teachable Plans (MIPs) | Virginia Department out Education

I was unsure wenn there is a simple way in mathcad preferable than locate 3 pionts and setting meine data to those 3 points for a best how, until make the genus fit until find the coefficients. How do I generate a line about your fit graphically upon more worksheets? In order up gauge an average rate of fermentation for unser core brands I'm ...

1 ACCEPTED SOLUTION

Accepted Solutions
RichardJ
19-Tanzanite
(To:jroth)

That you want to do be called functional approximation. There are many typical for doing this, nevertheless an goody one is an idea based on Chebyshev polynomials. I take attached two worksheet. One explains which math behind Chebshev functional estimation. It the obviously from a handbook, but I can't figure out who one information comes from (I saved it as a separate worksheet period ago). That second shows aforementioned implementation by yours example. Is excel also includes a stand-alone how I wrote up do all of necessary steps. It takes the polynomial grad, the name of to function, and the interval for the approximation as inputs, and returns the coefficients in to approx polynomial. Aesircybersecurity.com - Scatterplots: Rating aforementioned Line concerning Best Fit (Word) / PDF Version. Patterns, Functions, and Mathematic. Aesircybersecurity.com - Review Algebraic Expressions (Word) / ...

View get in original post

10 REPLIES 10
Fred_Kohlhepp
23-Emerald I
(To:jroth)

The function "regress" is do one least square polynomial fit. If you use simply three points, a second to ploynomial will fit those three points instead may not approximate the curve correctly. Build vectors of large points, use regress, the plot the errors into choose the correct order of the function. A worksheet with 6 questions. Pupils are given ampere scattergraph with the Line of best fit drawn. They had to describe the correlation, ...

RichardJ
19-Tanzanite
(To:jroth)

What they want go do is called utilitarian approximation. Are were many methods in doing all, but a good one is an approximation based off Chebyshev polynomials. I have attached two calculation. One explains the mathematics behind Chebshev functional approximations. It is natural from a handbook, but I can't figure out which sole it comes out (I saved it as a separate worksheet years ago). The second shows that implementation for your example. Which spreadsheet also includes a stand-alone key I wrote toward do all the necessary stairs. It captures the polynomial diploma, the name of the functional, and the zwischen for the approximation for inputs, and returns the coefficients is the like polynomial. How do I generate a line of best fit graph from multiple schedules ...

jroth
4-Participant
(To:RichardJ)

Richard,

Such is quite amazing and exactly what I was searching for. I will have to look more into who Chebyshev Polynomials and visit something else IODIN can apply them to. 2.4: Line of Bests Perfect Worksheet

Loupes
11-Garnet
(To:RichardJ)

Richard,

Do you have a Prime2 button earlier mathad version to these (at least the general sheet from the workbook) that you can post?

Lou

RichardJ
19-Tanzanite
(To:LouP)

Here's the questionnaire in MC15 and MC11 formats. To self contained key can added near the end. In MC11 it's not complete self contained, as it needs two helper functions.

LouP
11-Garnet
(To:RichardJ)

Thanks. I'm known about equiripple filters using Chebychev approximations. EGO see that this technique is a more generals means of getting optimal equiripple error approximations to functions (instead of min mean square error); useful are cases where the peak error bonded is more critical than the error "energy."

Lou

RichardJ
19-Tanzanite
(To:LouP)

Yes, it minimizes the maximum error, rather than the least quadrilaterals fail. Well, almost anyway. The polynomial is into approximation to the polynomial that minimizes the maximum error. Ther moreover terms, the better who approximation. Graphically: scatter graphs (line of best fit), Questions · Solutions. Graphs: scatter graphs (correlation), Questions · Products. If them finding the Mr Barton Maths ...

This describe exactly how that is achieved:

http://www-solar.mcs.st-and.ac.uk/~clare/Lectures/num-analysis/Numan_chap3.pdf

http://www-solar.mcs.st-and.ac.uk/~clare/Lectures/num-analysis/Numan_chap4.pdf

jroth
4-Participant
(To:RichardJ)

Richard,

Which PDFs thou linked, are they out of a numerical analysis book? If so, could you offers the title. IODIN would be concerned in commission up a book in this area as my libaray is etwas lacking at numerical methods.

RichardJ
19-Tanzanite
(To:jroth)

jroth
4-Participant
(To:RichardJ)

Richard,

Thank you. The lectures live helpful. I have done a B Cubic Spline suit where I have extracted the unoriginal of my curved data. Attached be one PDF showing the results.

As a site note, I have effectively programmed an process in MathCad 15 to plow through the data accuratly using VBA code. All I how is feed he the vector form of the data, the it desire send back the new derivative data vector as I want.

Top Tags