[Boards: 3 / a / aco / adv / an / asp / b / biz / c / cgl / ck / cm / co / d / diy / e / fa / fit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mu / n / news / o / out / p / po / pol / qa / r / r9k / s / s4s / sci / soc / sp / t / tg / toy / trash / trv / tv / u / v / vg / vp / vr / w / wg / wsg / wsr / x / y ] [Home]
4chanarchives logo
Hey /sci/, math retard here. I'm trying to make an algorithm:
Images are sometimes not shown due to bandwidth/network limitations. Refreshing the page usually helps.

You are currently reading a thread in /sci/ - Science & Math

Thread replies: 6
Thread images: 1
File: 1445724428354.jpg (129 KB, 804x787) Image search: [Google]
1445724428354.jpg
129 KB, 804x787
Hey /sci/, math retard here.

I'm trying to make an algorithm:

>(x * 0.01) - 1 = y


How can I make (1) decrease by half whenever (x) is halved?

Example:
>(100 * 0.01) - 1

>(50 * 0.01) - (1 / 2)

>(25 * 0.01) - (1 / 4)
>>
Basically, you take x and you ask it nicely.

But since you never go outside and your pale skin acts like a flashtorch on the eyes, you're just going to piss x off. So stay away.
>>
Can you explain what you want more
>>
>>7976337
(x*0.01) - x/100
Is that what you want?

Because what you said is like asking "Hi guys, my car broke down, I am trying to an engine <random engine specs>"
>>
>>7976337
>>7976337
(x/y * 0.01) - 1/y = z
>>
>>7976337
(x*0.01) + floor(log2(x)) = y
At x = 1, the equation is (x*0.01) = y
At x = 0.5, the equation is (x*0.01) - 1 = y
At x = 0.25, the equation is (x*0.01) - 2 = y
If you want a smooth curve instead of it suddenly jumping each time x = 2^k,k=int, then just remove the floor from the equation.
Thread replies: 6
Thread images: 1

banner
banner
[Boards: 3 / a / aco / adv / an / asp / b / biz / c / cgl / ck / cm / co / d / diy / e / fa / fit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mu / n / news / o / out / p / po / pol / qa / r / r9k / s / s4s / sci / soc / sp / t / tg / toy / trash / trv / tv / u / v / vg / vp / vr / w / wg / wsg / wsr / x / y] [Home]

All trademarks and copyrights on this page are owned by their respective parties. Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.
If a post contains personal/copyrighted/illegal content you can contact me at [email protected] with that post and thread number and it will be removed as soon as possible.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com, send takedown notices to them.
This is a 4chan archive - all of the content originated from them. If you need IP information for a Poster - you need to contact them. This website shows only archived content.