RosettaCodeData/Task/Euler-method/Racket/euler-method-5.rkt
Ingy döt Net 6f050a029e update
2013-06-05 21:47:54 +00:00

9 lines
253 B
Racket

> (require plot)
> (plot
(map (λ (h c)
(lines
(ODE-solve newton-cooling '(0 100) #:x-max 100 #:step h)
#:color c #:label (format "h=~a" h)))
'(10 5 1)
'(red blue black))
#:legend-anchor 'top-right)