We're updating the issue view to help you get more done. 

Typo in sqrt-ratio

Description

sqrt-ratio checks twice if sqrtnum is a floating-point number:

1 2 3 4 5 6 7 8 9 10 11 (defn- sqrt-ratio [^clojure.lang.Ratio n] (if (neg? n) Double/NaN (let [numerator (.numerator n), denominator (.denominator n), sqrtnum (sqrt numerator)] (if (float? sqrtnum) (Math/sqrt n) (let [sqrtden (sqrt denominator)] (if (float? sqrtnum) (Math/sqrt n) (/ sqrtnum sqrtden)))))))

The second check should be a check for the type of sqrtden or the check(s) should be removed (and let / do the job).

Environment

None

Status

Assignee

Mark Engelberg

Reporter

import

Labels

None

Approval

None

Patch

None

Priority

Minor