108 reputation
4
bio website tranzit.ca
location Montreal, Canada
age 22
visits member for 2 years, 5 months
seen Dec 25 '12 at 21:51

I love PHP !:)


Dec
25
awarded  Student
Dec
25
accepted Need help to create a formula for a game
Dec
25
asked Need help to create a formula for a game
Jan
25
awarded  Scholar
Jan
25
comment I need a simple algorithm
Final PHP Code : $Y = ceil( pow(2, log(($X / 10) * 4, 2)) / 2);
Jan
25
accepted I need a simple algorithm
Jan
25
awarded  Supporter
Jan
25
comment I need a simple algorithm
Yeah so N = log2((X / 10) * 4)` so .. Y = 2^N... Ok it is working but only problem is I get a base 2 higher then what I wanted but... I just devide by 2 at the end. Working like a charm. Thanks a lot all of you !
Jan
25
comment I need a simple algorithm
Here's is what I did : log(($X / 10) * 4, 2) ^ 2 Right ? The , 2 will use base 2 of log
Jan
25
comment I need a simple algorithm
Something that I can run on a computer. I'm really no expert. Like X + 2 or f(x) = 2(x-2) - 1. etc... you can use function or whatever you need.
Jan
25
awarded  Autobiographer
Jan
25
asked I need a simple algorithm