The Daily Click ::. Forums ::. Klik Coding Help ::. mathematical thing
 

Post Reply  Post Oekaki 
 

Posted By Message

Don Luciano

Heavy combat pancake

Registered
  25/10/2006
Points
  380

VIP Member
3rd August, 2009 at 17:35:11 -

Image

 
Code me a sausage!

-Nick-

Possibly Insane

Registered
  24/11/2002
Points
  2468

VIP Member
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 pancake

Registered
  25/10/2006
Points
  380

VIP Member
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

VIP Member
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 pancake

Registered
  25/10/2006
Points
  380

VIP Member
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 UK

Registered
  06/11/2004
Points
  1970

VIP MemberWeekly Picture Me This Round 43 Winner!Weekly Picture Me This Round 47 WinnerPicture Me This Round 49 Winner!
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.

Image

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 pancake

Registered
  25/10/2006
Points
  380

VIP Member
3rd August, 2009 at 22:21:50 -

thx guys solved!

and it was...

50*(√(x)/√(20))

this

 
Code me a sausage!

Codemonkey

Always Serious

Registered
  06/11/2007
Points
  164

Code MonkeyKlikCast StarVIP MemberAttention GetterWii Owner360 OwnerThe Cake is a LieCardboard BoxHero of TimeI'm a Storm Trooper
I'm on a BoatIt's-a me, Mario!PS3 OwnerSonic SpeedGOTM - SEPTEMBER 2009 - WINNER!Evil klikerPokemon Ball!I am an April Fool
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 pancake

Registered
  25/10/2006
Points
  380

VIP Member
3rd August, 2009 at 23:13:09 -

it calculates the distance for precision



Edited by Don Luciano

 
Code me a sausage!

Pixelthief

Dedicated klik scientist

Registered
  02/01/2002
Points
  3419

Game of the Week WinnerWeekly Picture Me This Winner!You've Been Circy'd!VIP MemberI like Aliens!Evil klikerThe SpinsterI donated an open source project
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 vaporware

Registered
  23/04/2008
Points
  237

I'm an alien!VIP MemberWii OwnerI donated an open source project Santa Hat
4th August, 2009 at 00:18:39 -

what do you use it for?!?

 
n/a

Sketchy

Cornwall UK

Registered
  06/11/2004
Points
  1970

VIP MemberWeekly Picture Me This Round 43 Winner!Weekly Picture Me This Round 47 WinnerPicture Me This Round 49 Winner!
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 vaporware

Registered
  23/04/2008
Points
  237

I'm an alien!VIP MemberWii OwnerI donated an open source project Santa Hat
4th August, 2009 at 00:37:50 -

what kind of mathematics is that? Algebra? Calculus?

 
n/a

Del Duio

Born in a Bowling Alley

Registered
  29/07/2005
Points
  1078

GOTW WINNER CUP 1!GOTW WINNER CUP 2!GOTW WINNER CUP 3!GOTW WINNER CUP 4!Evil klikerHasslevania 2!The OutlawSanta Boot
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

VIP MemberI'm on a BoatI am an April FoolHonored Admin Alumnus
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.

Image
   

Post Reply



 



Advertisement

Worth A Click