Fixed missing import for curry
This commit is contained in:
parent
9307cbb120
commit
bbef490fb0
|
@ -409,6 +409,7 @@ This function is known as Eulers totient or phi function.
|
||||||
Note: The function @racket[totient] is multiplicative.
|
Note: The function @racket[totient] is multiplicative.
|
||||||
|
|
||||||
@interaction[#:eval untyped-eval
|
@interaction[#:eval untyped-eval
|
||||||
|
(require racket/function) ; for curry
|
||||||
(totient 9)
|
(totient 9)
|
||||||
(length (filter (curry coprime? 9) (range 10)))]
|
(length (filter (curry coprime? 9) (range 10)))]
|
||||||
|
|
||||||
|
|
|
@ -372,4 +372,3 @@
|
||||||
(equal? (matrix* (matrix-2d-orthogonal-projection 1 0) e2) O)
|
(equal? (matrix* (matrix-2d-orthogonal-projection 1 0) e2) O)
|
||||||
(equal? (matrix* (matrix-2d-orthogonal-projection 0 1) e1) O)
|
(equal? (matrix* (matrix-2d-orthogonal-projection 0 1) e1) O)
|
||||||
(equal? (matrix* (matrix-2d-orthogonal-projection 0 1) e2) e2))))))
|
(equal? (matrix* (matrix-2d-orthogonal-projection 0 1) e2) e2))))))
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user