racket/collects/math/scribblings/utils.rkt
Neil Toronto f2dc2027f6 Initial math library commit. The history for these changes is preserved
in the original GitHub fork:

  https://github.com/ntoronto/racket

Some things about this are known to be broken (most egregious is that the
array tests DO NOT RUN because of a problem in typed/rackunit), about half
has no coverage in the tests, and half has no documentation. Fixes and
docs are coming. This is committed now to allow others to find errors and
inconsistency in the things that appear to be working, and to give the
author a (rather incomplete) sense of closure.
2012-11-16 11:39:51 -07:00

34 lines
957 B
Racket

#lang at-exp racket/base
(require scribble/eval
scribble/manual)
(provide author-neil
author-jens-axel
make-math-eval
make-untyped-math-eval)
(define (author-neil)
@author{@(author+email "Neil Toronto" "ntoronto@racket-lang.org")})
(define (author-jens-axel)
@author{@(author+email "Jens Axel Søgaard" "jensaxel@soegaard.net")})
(define (make-math-eval)
(define eval (make-base-eval))
(eval '(require typed/racket/base))
(eval '(require math))
(eval '(require math/scribblings/rename-defines))
(λ (v)
(cond [(syntax? v) (eval #`(rename-defines #,v))]
[(list? v) (eval `(rename-defines ,v))]
[else (eval v)])))
(define (make-untyped-math-eval)
(define eval (make-base-eval))
(eval '(require math))
(eval '(require (rename-in (except-in plot plot plot3d)
[plot-bitmap plot]
[plot3d-bitmap plot3d])))
eval)