[Haskell-beginners] Antiderivative (indefinite integral)?

Martin Drautzburg Martin.Drautzburg at web.de
Sat Jan 19 23:54:03 CET 2013


On Saturday, 19. January 2013 22:38:09 Paul Higham wrote:

> Looking at the antiderivative the same way we can write
> 
> 	s          = [Int] -> [Int]
> 	s []      = []
> 	s (f:fs) = scanl (+) f fs

But your function has a well definied starting point. This won't work anymore 
if the function is defined for all negative Ints, right?

-- 
Martin



More information about the Beginners mailing list