Finding The Equations of Lines

  • Thread starter Thread starter daniel350
  • Start date Start date
  • Tags Tags
    Lines
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!
 
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...
Fermat's Last Theorem has long been one of the most famous mathematical problems, and is now one of the most famous theorems. It simply states that the equation $$ a^n+b^n=c^n $$ has no solutions with positive integers if ##n>2.## It was named after Pierre de Fermat (1607-1665). The problem itself stems from the book Arithmetica by Diophantus of Alexandria. It gained popularity because Fermat noted in his copy "Cubum autem in duos cubos, aut quadratoquadratum in duos quadratoquadratos, et...
Thread 'Imaginary Pythagorus'
I posted this in the Lame Math thread, but it's got me thinking. Is there any validity to this? Or is it really just a mathematical trick? Naively, I see that i2 + plus 12 does equal zero2. But does this have a meaning? I know one can treat the imaginary number line as just another axis like the reals, but does that mean this does represent a triangle in the complex plane with a hypotenuse of length zero? Ibix offered a rendering of the diagram using what I assume is matrix* notation...

Similar threads

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