W T W T 1 2000 W T 1 1 050 Ad T 1 050 Ad T 1 050 Ad T 200 000 200000 T 1 20000 T W 1 0 Wou Q37094565

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


Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.