Closed johngarg closed 7 years ago
What version are you using? Locally this works fine for me:
numeric.expresso.core> (solve 'x '(= 13 (+ (* 4 x) 5)) '(= a b))
#{{x 2}}
numeric.expresso.core> (solve 'x '(= 13 (+ (* 4 x) 5)))
#{2}
My dependencies are
:dependencies [[org.clojure/clojure "1.8.0"]
[expresso "0.2.2-SNAPSHOT"]
[instaparse "1.4.3"]]
I should note that [org.clojure/clojure "1.6.0"]
seems to work fine—something I checked after reading a comment in a different issue's thread.
The function
solve
returns an error when only one equation to be solved is supplied. Thus(solve 'x '(= 13 (+ (* 4 x) 5)))
gives me:while
(solve 'x '(= 13 (+ (* 4 x) 5)) '(= a b))
evaluates to#{{x 2}}
, as expected.