Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- time_sau s u a -- lets use quadratic formula
- | 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
- | otherwise = (-a + sqrt (a^2 - 4 * u * (-s)))/(2 * u)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement