[a / b / c / d / e / f / g / gif / h / hr / k / m / o / p / r / s / t / u / v / vg / vm / vmg / vr / vrpg / vst / w / wg] [i / ic] [r9k / s4s / vip / qa] [cm / hm / lgbt / y] [3 / aco / adv / an / bant / biz / cgl / ck / co / diy / fa / fit / gd / hc / his / int / jp / lit / mlp / mu / n / news / out / po / pol / pw / qst / sci / soc / sp / tg / toy / trv / tv / vp / vt / wsg / wsr / x / xs] [Settings] [Search] [Mobile] [Home]
Board
Settings Mobile Home
/sci/ - Science & Math


Thread archived.
You cannot reply anymore.


[Advertise on 4chan]


File: pepe.jpg (27 KB, 640x557)
27 KB
27 KB JPG
I am programming right now and need help.

if 600 = 0.
500 = -50.
400 = -100.
300 = -150.
200 = -200.
100 = -250

what is 1 = ?
>>
>>16133973
x/2 - 300
>>
>>16133975
?
>>
>>16133980
600/2-300=
500/2-300=
400/2-300=
>>
>>16133973
600 = 0 is false, therefore your if statement will not be executed.
>>
>>16133973
what do you want it to be?
>>
File: 1693715025689334.jpg (41 KB, 1024x547)
41 KB
41 KB JPG
-202 ig
>>
>>16133973
so sad because even here in my shithole they teach math reasoning in your 4/5th year of school
>>
>>16133975
where the hell does x come into it
>>
>>16133973
Brightest /sci/ user
>>
-π/τ
>>
>>16133973
Every -100 on the lhs sees a decrease of -50 on the rhs.

So every -1 lhs means -1/50 rhs and then +1 lhs means +1/50 on the rhs. By this pattern:

0 lhs would be -300 rhs and from there, adding 1 to lhs would be -300 +1/50 = -299,98 on the rhs.
>>
>>16136828
I'm so tired, it should'be been:
>every -1 lhs means -1/2 rhs and then +1 lhs means +1/2 on the rhs. By this pattern:
...
Etc. Calc with correct numbers.

Idk where I got 1/50 from.



[Advertise on 4chan]

Delete Post: [File Only] Style:
[Disable Mobile View / Use Desktop Site]

[Enable Mobile View / Use Mobile Site]

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.