Skip to content

Instantly share code, notes, and snippets.

@sritchie
Created August 21, 2020 16:20
Show Gist options
  • Save sritchie/357568dbf9bbf55114ab5b41d940c61f to your computer and use it in GitHub Desktop.
Save sritchie/357568dbf9bbf55114ab5b41d940c61f to your computer and use it in GitHub Desktop.
(deftest bigint-repro
(testing "[No method in multimethod 'sicmutils.generic/div' for dispatch value: [#object[Number] :sicmutils.polynomial/polynomial]]"
(hermetic-simplify-fixture
(fn []
(sicmutils.generic/simplify
(* 0.5
(/ 1 (* 2 'x)))))))
(testing "TypeError: Cannot mix BigInt and other types, use explicit conversions"
(* 0.5 (u/bigint 2))
(* (sicmutils.rational-function/make
(sicmutils.polynomial/make 2 [[[0 0] 0.5]])
(sicmutils.polynomial/make 2 [[[1 0] 2]]))
(sicmutils.polynomial/make 2 [[[0 2] 4]]))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment