I created the following code in Haskell:
eqs a b c
| ((b^2) - (4*a*c)) < 0 = "MESSAGE"
| otherwise = "x1= " ++ show (sqrt((-b + ((b^2) - (4*a*c))))2*a) ++ "x2= " show (sqrt((-b - ((b^2) - (4*a*c))))2*a)
Why do I get the following error message?
ERROR file:.\file.hs:2 - Syntax error in declaration (unexpected `;', possibly due to bad layout)
|
. This will not fix all errors, but let's start with that. – chi