[Date Index] [Thread Index] [Author Index]
evaluation of a function via mathematica from clojure using the
Hello everybody, I am trying to use clojure along with mathematica. I am not sure if this is a completely mathematica question.. but I couldn't find a better place where I could ask this question. Thanks to Clojuratica, the integration is seamless.. when I try to execute the following code *(math (SetDelayed (func1 (Pattern x (Blank)))* * (With [f 10 g 20]* * (* f (+ g x)))))* *(math (func1 30))* I got *(ClojurianScopes/With [f 10 g 20] (* f (+ 30 g)))* and when I evaluated (the difference is I am using "Set" instead of "SetDelayed") *(math (Set (func2 (Pattern x (Blank)))* * (With [f 10 g 20]* * (* f (+ g x)))))* * * *(math (func2 30))* I got ... *(ClojurianScopes/With [f 10 g 20] (* f (+ 30 g)))* Adding N/Simplify did not make any difference.. I was expecting 500 in both of those tries.. Can anybody help? Sunil.