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!
 
Thread 'Video on imaginary numbers and some queries'
Hi, I was watching the following video. I found some points confusing. Could you please help me to understand the gaps? Thanks, in advance! Question 1: Around 4:22, the video says the following. So for those mathematicians, negative numbers didn't exist. You could subtract, that is find the difference between two positive quantities, but you couldn't have a negative answer or negative coefficients. Mathematicians were so averse to negative numbers that there was no single quadratic...
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...
Thread 'Unit Circle Double Angle Derivations'
Here I made a terrible mistake of assuming this to be an equilateral triangle and set 2sinx=1 => x=pi/6. Although this did derive the double angle formulas it also led into a terrible mess trying to find all the combinations of sides. I must have been tired and just assumed 6x=180 and 2sinx=1. By that time, I was so mindset that I nearly scolded a person for even saying 90-x. I wonder if this is a case of biased observation that seeks to dis credit me like Jesus of Nazareth since in reality...

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