Unformatted text preview: isRound (Triangle _ _ _) = False area :: Shape -> Float area (Triangle x y z) = sqrt(s*(s-x)*(s-y)*(s-z)) where s = perimeter (Triangle x y z) / 2...
View Full Document
This note was uploaded on 11/10/2010 for the course CS 332F taught by Professor Russel during the Spring '10 term at California State University Los Angeles .
- Spring '10
- Functional Programming