Posted By
Message
Don Luciano Heavy combat pancakeRegistered 25/10/2006
Points 380
3rd August, 2009 at 17:35:11 -
Code me a sausage!
-Nick- Possibly Insane
Registered 24/11/2002
Points 2468
3rd August, 2009 at 17:39:05 -
Square root-ish.
Use a graphical calculator to figure it out precisely!
Project: Roller Coaster is on it's way!
http://www.projectrollercoaster.co.uk/
http://www.craftsncreatures.com
Don Luciano Heavy combat pancakeRegistered 25/10/2006
Points 380
3rd August, 2009 at 17:42:01 -
Uh to explain, i get a number from 1-20. and i want to get from that number the certain percent.
I hope you understand, i just need some kind of formula, cause im not very good with math. So smaller numbers give a lot of % whilst far away number gives steadily nombers.
thx...
Code me a sausage!
-Nick- Possibly Insane
Registered 24/11/2002
Points 2468
3rd August, 2009 at 17:44:34 -
I'm not amazing at maths either im afraid, but i usually just fiddle about with a graph untill i get the result!
http://my.hrw.com/math06_07/nsmedia/tools/Graph_Calculator/graphCalc.html
Project: Roller Coaster is on it's way!
http://www.projectrollercoaster.co.uk/
http://www.craftsncreatures.com
Don Luciano Heavy combat pancakeRegistered 25/10/2006
Points 380
3rd August, 2009 at 20:36:49 -
Ok i found the thing i need, but how would i reverse this...
50*(5²)/20²
1 can be any number under 20
its supossed to give out the result beetween 0-50% and it does but I want it in other direction.
the increment or whats it called. Edited by Don Luciano
Code me a sausage!
Sketchy Cornwall UKRegistered 06/11/2004
Points 1971
3rd August, 2009 at 20:47:44 -
I use Excel for stuff like this.
I plot the points on a chart, tell it to add a trendline, and then get it to display the formula of the trendline.
This looks like it should be *approximately* right:
Y = Ln( X ) * -25.901 + 97.812
Just for the sake of it, I'd probably use slighly more "round" numbers, like "Ln( X )* -25 + 100" Edited by Sketchy
n/a
Don Luciano Heavy combat pancakeRegistered 25/10/2006
Points 380
3rd August, 2009 at 22:21:50 -
thx guys solved!
and it was...
50*(√(x)/√(20))
this
Code me a sausage!
Codemonkey Always SeriousRegistered 06/11/2007
Points 164
3rd August, 2009 at 22:29:42 -
Makes me curious about what that equation does.
You can log off any time you like, but you can't ever leave.
Don Luciano Heavy combat pancakeRegistered 25/10/2006
Points 380
3rd August, 2009 at 23:13:09 -
it calculates the distance for precision
Edited by Don Luciano
Code me a sausage!
Pixelthief Dedicated klik scientistRegistered 02/01/2002
Points 3419
3rd August, 2009 at 23:54:39 -
This might be slightly offtopic, but I absolutely loved the distance formula sketchy had in his snippet manager, wherever it came from:
((Max(Abs((x1 - x2)), Abs((y1 - y2)))) * 0.941246) + ((Min(Abs((x1 - x2) ), Abs((y1 - y2)))) * 0.41)
I've been using that in every single project I do now, honestly.
Gridquest V2.00 is out!!
http://www.create-games.com/download.asp?id=7456
Jon C-B I create vaporwareRegistered 23/04/2008
Points 237
4th August, 2009 at 00:18:39 -
what do you use it for?!?
n/a
Sketchy Cornwall UKRegistered 06/11/2004
Points 1971
4th August, 2009 at 00:29:41 -
It's for calculating the distance between two points.
For computers it's much faster than the usual method, because it doesn't use the square-root function, which is relatively slow.
However, it's always accurate to within 6%, and usually to within 3% of the actual distance.
I originally found it on wikipedia, but it doesn't seem to be there any more.
This site explains all: http://knowledgerush.com/kr/encyclopedia/Euclidean_distance/
n/a
Jon C-B I create vaporwareRegistered 23/04/2008
Points 237
4th August, 2009 at 00:37:50 -
what kind of mathematics is that? Algebra? Calculus?
n/a
Del Duio Born in a Bowling AlleyRegistered 29/07/2005
Points 1078
4th August, 2009 at 16:16:44 -
Originally Posted by Jon C-B what do you use it for?!?
I think he used it for Gridquest to determine when some of his enemies shot projectiles at the hero. I could be wrong (??)
--
"Del Duio has received 0 trophies. Click here to see them all."
"To be a true ninja you must first pick the most stealthy of our assorted combat suits. Might I suggest the bright neon orange?"
DXF Games, coming next: Hasslevania 2- This Space for Rent!
Muz Registered 14/02/2002
Points 6499
6th August, 2009 at 03:02:13 -
I spent years trying to figure out this stuff and now someone tells me that Excel does it. Edited by Muz
Disclaimer: Any sarcasm in my posts will not be mentioned as that would ruin the purpose. It is assumed that the reader is intelligent enough to tell the difference between what is sarcasm and what is not.