Finding The Equations of Lines

  • Thread starter Thread starter daniel350
  • Start date Start date
  • Tags Tags
    Lines
AI Thread Summary
The discussion centers on simplifying programming logic by finding equations of lines from a dataset, with a focus on creating a regulated method rather than relying on trial and error. The user seeks guidance on determining these equations, particularly for non-linear relationships, and expresses a willingness to learn more about relevant mathematical concepts, potentially including calculus. Suggestions include researching "least squares" for computing the best fit line and using Excel's trend line feature to display the equation of a smoothed line. The user is looking for hints or resources to aid in this learning process. Overall, the goal is to establish a systematic approach to derive equations from the provided data.
daniel350
Messages
13
Reaction score
0
So I'm doing some programming, and to simplify a very large amount of if statements, I've decided to put it down to a few lines with a simple equation, I've done this before with other things, but it was very much trial and error.

Therefore I'd like to see how it can be done in a more 'regulated' method. Determining the equation of a line. I'm willing to learn and spend hours reading and doing, just need to know what it is I'm looking for (calculus?).

My data
75 0 82 0 0
125 0 84 0 1
170 0 88 0 1
210 1 92 0 1
245 2 94 0 2
275 3 94 0 2
300 4 100 1 2
320 5 106 1 2
335 6 112 2 3
345 7 118 2 3
350 8 124 3 4
>350 8 130 4 5

I simply want to make an equation that relates these equations, I'm focusing firstly on the first one, which has a decrement of 5 for each iteration, the others may be easier to find.

I'm not looking for an exact solution, just some hints or tips or directions on where to learn how to do this; as they are not (at least not always) linear.

regards,

Daniel

PS: If this helps, also, is there a way to check the equation of the 'smoothed' line in EXCEL?
http://img697.imageshack.us/img697/1875/54459250.gif
 
Last edited by a moderator:
Mathematics news on Phys.org
In Excel look at the option tap of the trend line menu, check the box to show the equation.


Do a wiki search on "least squares" for the computations necessary to compute the equation of the best fit line.
 
Thanks!
 
Suppose ,instead of the usual x,y coordinate system with an I basis vector along the x -axis and a corresponding j basis vector along the y-axis we instead have a different pair of basis vectors ,call them e and f along their respective axes. I have seen that this is an important subject in maths My question is what physical applications does such a model apply to? I am asking here because I have devoted quite a lot of time in the past to understanding convectors and the dual...
Insights auto threads is broken atm, so I'm manually creating these for new Insight articles. In Dirac’s Principles of Quantum Mechanics published in 1930 he introduced a “convenient notation” he referred to as a “delta function” which he treated as a continuum analog to the discrete Kronecker delta. The Kronecker delta is simply the indexed components of the identity operator in matrix algebra Source: https://www.physicsforums.com/insights/what-exactly-is-diracs-delta-function/ by...

Similar threads

Replies
4
Views
1K
Replies
12
Views
1K
Replies
2
Views
2K
Replies
8
Views
2K
Replies
3
Views
2K
Replies
2
Views
2K
Back
Top