You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
- (define-module math
- :exports
- (pi tau pow sqrt)
-
- (define pi 3.1415)
- (define tau (* 2 pi))
- (define (pow a b) (** a b))
- (define (sqrt a) (** a 0.5)))
-
- (assert (= math::pi 3.1415))
- (assert (= math::tau (* 2 math::pi)))
-
-
- ;; (tdefine-module 'math
- ;; :exports
- ;; '(pi tau pow sqrt)
-
- ;; '(define pi 3.1415)
- ;; '(define tau (* 2 pi))
- ;; '(define (pow a b) (** a b))
- ;; '(define (sqrt a) (** a 0.5)))
|