September 2017
Beginner to intermediate
396 pages
9h 46m
English
module Quadratic where
data Quadratic = Quadratic { a :: Double, b :: Double, c :: Double } deriving Show
This represents the quadratic equation of the form a∗x2+b∗x+c=0a∗x2+b∗x+c=0. a, b, and c represent the corresponding constants in the equation.
type RootT = Complex Double
This represents that the complex data type parameterized by Double. RootT is synonymous to type Complex Double (similar to typedef in C/C++).
Read now
Unlock full access