Advertisement
pcwizz

using guards

May 12th, 2014
203
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. time_sau s u a  -- lets use quadratic formula
  2.     | a == 0 {- return a relevant answer for t-} = time_sv s u -- cover our collective bottom if we try to use this function with an a of 0
  3.     | otherwise = (-a + sqrt (a^2 - 4 * u * (-s)))/(2 * u)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement