W(t) = W(t-1) +(20.00 -W(t-1)/1-.050)(ad(t-1)-.050) if ad(t-1)>.050
ad(t) = 200,000 -200000(t+1)/20000*t
W(1) = 0
how would you do this in haskell i dont get how to use theguards and how do you feed that function ad(t) into W(t)
Solution
W(t) = W(t-1) +(20.00 -W(t-1)/1-.050)(ad(t-1)-.050) if ad(t-1)>.050
ad(t) = 200,000 -200000(t+1)/20000*t
W(1) = 0
how would you do this in haskell i dont get how to use theguards and how do you feed that function ad(t) into W(t)
Solution