Is there a log function that works in clojure 1.3 and above?

1,108 views
Skip to first unread message

Sean Neilan

unread,
Apr 27, 2012, 8:41:44 PM4/27/12
to clo...@googlegroups.com
Hi All,

There exists a log function by Konrad Hinsen

But, does it work in Clojure 1.3 and above? If so, how would I start using it without leiningen?

Incanter has a log function but whenever I do (use '(incanter core)) to get the log function, a swing window gets itself ready to display charts. This is definitely fixable though.

Thank you for your time.

Sean Neilan

unread,
Apr 27, 2012, 8:44:13 PM4/27/12
to clo...@googlegroups.com
I'm good! Incanter has a log function & adding   :jvm-opts ["-Djava.awt.headless=true"]
to project.clj gets rid of the window.

Sean Neilan

unread,
Apr 27, 2012, 11:48:34 PM4/27/12
to clo...@googlegroups.com
Actually I just realized that you can use the java math api. Whoops.
(math/sqrt 2)
2.0
(math/log 4)
1.3862943611198906

Hooray!
Reply all
Reply to author
Forward
0 new messages