We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent affe515 commit 144a6dcCopy full SHA for 144a6dc
math-lib/math/private/matrix/matrix-basic.rkt
@@ -312,7 +312,7 @@
312
(define matrix-cos-angle
313
(let ()
314
(define (mag² [x : Number]) (if (real? x) (sqr x) (+ (sqr (real-part x)) (sqr (imag-part x)))))
315
- (define (inf=>1 [x : Real]) : Flonum (if (eq? x +inf.0) 1. (if (eq? x -inf.0) -1. 0.)))
+ (define (inf=>1 [x : Real]) : Flonum (if (eqv? x +inf.0) 1. (if (eqv? x -inf.0) -1. 0.)))
316
(: cinf=>1 (case-> (-> Real Flonum)
317
(-> Float-Complex Float-Complex)
318
(-> Number Number)))
@@ -374,7 +374,7 @@
374
(cond
375
[(flonum? ca) (flacos ca)]
376
[(real? ca)
377
- (if (eq? ca 1) 0 (flacos (fl ca)))]
+ (if (eqv? ca 1) 0 (flacos (fl ca)))]
378
[else (acos ca)]))
379
380
(: matrix-normalize
0 commit comments