|
-
Oct 8th, 2011, 03:24 PM
#1
Thread Starter
Fanatic Member
[RESOLVED] Need a formula
Hi all,
I have a strange request, I need to calculate a formula based on the terms given.
f(27.1864667) = 1.0
f(24.6676333) = 2.0
f(2.2479) = 10.9
So I basically need to know what f(X) is. Any ideas ?
EDIT: More info, This is to calculate score of a shooting target from the furthest point from the centre that the bullet hole made, all the rings are equally spaced so it should be linear equation.
Last edited by BlindSniper; Oct 9th, 2011 at 02:15 AM.
-
Oct 8th, 2011, 04:19 PM
#2
Re: Need a formula
There are infinitely many answers, though after plotting your data it is extremely close to linear. A linear least-squares regression gives
f(x) = 29.7056 - 2.51906x
courtesy of Wolfram Alpha.
The residuals are extremely small, with magnitude less than 0.0001, so the fit is excellent.
The time you enjoy wasting is not wasted time.
Bertrand Russell
<- Remember to rate posts you find helpful.
-
Oct 8th, 2011, 06:07 PM
#3
Re: Need a formula
@jemidiah: You mixed up your variables.
Assuming a linear equation (y = mx + b), we can solve for the first two equations to find m = -0.39700919 and b = 11.793277. This result fits well with the third equation.
f(x) = 11.793 - 0.397x
f(27.1864667) = 0.9999727201
f(24.6676333) = 1.999949699
f(2.2479) = 10.9005837
-
Oct 9th, 2011, 01:48 AM
#4
Thread Starter
Fanatic Member
Re: Need a formula
The formula's result will be rounded to the first digit, which means it doesn't have to be exact. I am going to post more values later today and they will be more accurate.
Last edited by BlindSniper; Oct 9th, 2011 at 02:07 AM.
-
Oct 9th, 2011, 02:10 AM
#5
Thread Starter
Fanatic Member
Re: Need a formula
 Originally Posted by Logophobic
@jemidiah: You mixed up your variables.
Assuming a linear equation (y = mx + b), we can solve for the first two equations to find m = -0.39700919 and b = 11.793277. This result fits well with the third equation.
f(x) = 11.793 - 0.397x
f(27.1864667) = 0.9999727201
f(24.6676333) = 1.999949699
f(2.2479) = 10.9005837
Your formula seems to be what I need . I will test it thoroughly and if it works I will be a very happy man.
-
Oct 9th, 2011, 11:17 AM
#6
Thread Starter
Fanatic Member
Re: Need a formula
I recalculated the values and then threw them at wolfram alpha and now I have a good working formula. 
Thanks guys.
-
Oct 9th, 2011, 04:37 PM
#7
Re: [RESOLVED] Need a formula
Hah, how silly of me. I'm sorry for the mix-up, though at least my link was useful.
The time you enjoy wasting is not wasted time.
Bertrand Russell
<- Remember to rate posts you find helpful.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|