Concerning free software, programming, and whatever else I find interesting. Also the blog for my Web site, frigidcode.com.
More fun with Haskell plotting: Functions of functions
Posted 04-08-2013 at 12:56 AM by hydraMax
Code:
import Graphics.Gnuplot.Simple f x a = (x + a) * (x - a) * (x + 2*a) fs f l = map f [1..l] main = plotFuncs [Key Nothing, Title "(x + a)(x - a)(x + 2a) for a over 1..10"] (linearScale 1000 (-10,10)) (fs f (10 :: Double))
Total Comments 0