I am trying to follow the racket documentation on how to use 2D plotting. Unfortunately, I can't seem to be able to get it to work (probably something simple)
My code is:
#lang racket
(require plot)
(plot (function sin (-pi) pi #:label "y = sin(x)"))
and the error is:
compile: unbound identifier in module in: function
I am a racket/lisp newbie, so if it is obvious, I just don't realize it. I have also tried inserting (require racket/gui/base) as well as (plot-new-window? #t) but those don't seem to do the trick either.
I'm using racket v5.1.3 on Ubuntu 12.04. I am not using Dr. Racket.