2014-05-21 17:37 GMT+02:00 Laurent <[email protected]>: > ... it eats everything! (particularly exceptions) > For example, it is perfectly happy with the following: > > % racket > Welcome to Racket v6.0.1.7. >> (require plot) >> (plot (function (lambda(x)(+ x n))) > #:x-min 0 #:x-max 10 #:y-min 0 #:y-max 10) > (object:2d-plot-snip% ...) > > ... although n is clearly undefined. Presumably this is to avoid breaking on > math errors like `(/ 0)` ?
Actually I think there need to be an add-on to plot that takes care of plotting functions with singularities. Currently the plot for (/ 1 x) in [-1;1] looks wrong. An attempt for such an add-on that uses plot as backend: https://github.com/soegaard/bracket/blob/master/plotting/adaptive-plotting.rkt /Jens Axel ____________________ Racket Users list: http://lists.racket-lang.org/users

