Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Halp

Name: HPJ 2007-06-07 10:03 ID:nMlhwBm5

my math skills are fucking rusty

want an equation that has an input in the range 0-2, but the out put is
in out
0 100
1 30
2 1

its obviously some log or 1/x function, but like i said, rusty.

Name: Anonymous 2007-06-07 10:05 ID:Zkb3Ngt6

yourHomework :: Int -> Int
yourHomework 0 = 100
yourHomework 1 = 30
yourHomework 2 = 1

Name: Anonymous 2007-06-07 10:19 ID:jMQXumdh

out = [100,30,1][in]

Name: Anonymous 2007-06-07 10:27 ID:9RxmUEXS


       / 100    if x = 0
f(x) = { 30     if x = 1
       \ 1      if x = 2

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List