I am trying to follow the racquet documentation on how to use 2D graphics. Unfortunately, I can't get it to work (maybe something simple)
My code is:
#lang racket (require plot) (plot (function sin (-pi) pi
and error:
compile: unbound identifier in module in: function
I am new to racket / lisp, so if this is obvious, I just don't get it. I also tried inserting (require racket/gui/base) as well as (plot-new-window? #t) , but this also doesn't seem like a trick.
I am using racket v5.1.3 on Ubuntu 12.04. I do not use Dr. Racket
source share