homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Home / Forums Index / Hardware and OS Related Technologies / Website Technology Issues
Forum Library, Charter, Moderators: phranque

Website Technology Issues Forum

need help with exponential function

 1:18 pm on Jan 17, 2008 (gmt 0)

I am working with a set of numbers from 0 to 30.

I need to give each number an accuracy rating, 0 would be 0% accurate, 30 would be 100% accurate.

as a number gets closer to 30 the accuracy should increase exponentially, for example I would want the number 20 to be around 80% accurate.

I know I need some sort of curve to do this but am unsure how to create the function, can anyone help me out?




 1:44 pm on Jan 17, 2008 (gmt 0)

I'm not claiming to be a maths guru, but it's a nice little problem so I'll have a go.

How about using a square root and converting it into a percentage?

sqrt(30) = 5.47722558, so if $x is the number you are trying to convert you could do.

sqrt($x) / 5.47722558 * 100

This would put 20 at 82%

Edit: this would put 1 at 18% and 4 at 32% and 10 at 58% - I'm not sure I've got what you are trying to achieve the right way around here..?


 2:28 pm on Jan 17, 2008 (gmt 0)

i just told myself i would stay out of these things!

you might consider using the natural laws of growth and decay which involve the natural logarithms and equations with "ln" and "e" in them...

i'll stop there


 3:11 pm on Jan 17, 2008 (gmt 0)

hmm yeah, from what I remember you use log to make bendy lines straight. Presumably there is some kind of reverse log which can make straight lines bendy (I hope I'm not confusing anyone with my technical terminology here ;)).


 3:14 pm on Jan 17, 2008 (gmt 0)

thank you both. i will look into ln & e, no doubt this is going to hurt my head!

Global Options:
 top home search open messages active posts  

Home / Forums Index / Hardware and OS Related Technologies / Website Technology Issues
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved