Anonymous user
Roots of a function: Difference between revisions
→{{header|Haskell}}
(added Haskell) |
|||
Line 361:
<lang haskell>f x = x^3-3*x^2+2*x
findRoots start stop step eps =
Executed in GHCi:
<lang haskell>*Main> findRoots (-1.0) 3.0 0.0001 0.000000001
|