This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-04-30
Channels
- # announcements (5)
- # babashka (9)
- # beginners (48)
- # calva (300)
- # clj-kondo (9)
- # clojure (44)
- # clojure-austin (2)
- # clojure-europe (14)
- # clojure-uk (4)
- # clojurescript (1)
- # conjure (2)
- # datascript (3)
- # datomic (8)
- # exercism (5)
- # fulcro (1)
- # luminus (4)
- # music (1)
- # off-topic (12)
- # pathom (6)
- # rdf (18)
- # react (8)
- # sci (78)
- # shadow-cljs (12)
- # spacemacs (4)
- # tools-build (5)
- # tools-deps (26)
- # vim (4)
- # xtdb (8)
Is this some sort of bug in the test for complex-numbers?
Divide numbers with real and imaginary part
expected: (= (c/div [1 2] [3 4]) [0.44 0.08])
actual: (not (= [0.44 0.08] [0.44 0.08]))
My guess would be that it's comparing doubles with floats. Could you post the div
function?
Somebody actually just filed an issue with this same exact test case, and I figured it must have been you but it turns out not: https://github.com/exercism/clojure/issues/478 What are the chances? 😂