Hi this is probably a very simple problem but I'm having issue with it. I'm trying to make a roots function with the formula:
roots a b c = ((-b + t)/a', (-b - t)/a')
where
t = b ^ 2 - 4 * a * c
a' = 2 * a
I'm now trying to make it a curried function however I can't seem to get it to work this is what I've put:
roots:: Double -> (Double -> (Double -> Double))
Could someone please help me out?
Thanks!