Xerxes18
Lieutenant
- Dabei seit
- Aug. 2008
- Beiträge
- 694
Hallo,
warum habe ich bei dieser einfachen Funktion folgenden Fehler:
ERROR file:.\test.hs:11 - Type error in explicitly typed binding
*** Term : ball
*** Type : Float -> (Float,a)
*** Does not match : Float -> Float
Hier der Code :
ball :: Float -> Float
ball x = ((square x) / square 9,81) * sin ((1+ sqrt 5 )/2)
Danke im voraus!
warum habe ich bei dieser einfachen Funktion folgenden Fehler:
ERROR file:.\test.hs:11 - Type error in explicitly typed binding
*** Term : ball
*** Type : Float -> (Float,a)
*** Does not match : Float -> Float
Hier der Code :
ball :: Float -> Float
ball x = ((square x) / square 9,81) * sin ((1+ sqrt 5 )/2)
Danke im voraus!