From de01db7bf153b44f01a14318db2b42b0ac47a615 Mon Sep 17 00:00:00 2001 From: Eli Barzilay Date: Thu, 6 Oct 2011 15:04:55 -0400 Subject: [PATCH] Adapt front page example for the new plot. --- collects/meta/web/www/index.rkt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/collects/meta/web/www/index.rkt b/collects/meta/web/www/index.rkt index 59208980c6..1e39b845d1 100644 --- a/collects/meta/web/www/index.rkt +++ b/collects/meta/web/www/index.rkt @@ -195,8 +195,8 @@ (define ((deriv f) x) (/ (- (f x) (f (- x 0.001))) 0.001)) (define (thrice f) (lambda (x) (f (f (f x))))) - (plot (mix (line ((thrice deriv) sin) #:color 'red) - (line cos #:color 'blue)))} + (plot (list (function ((thrice deriv) sin) -5 5) + (function cos -5 5 #:color 'blue)))} @desc{This program uses the @elemcode{plot} library to draw plots of functions. Note that the plots are actual value, which DrRacket shows in graphical form.})