Sorry, the Needs call isn't quite right. Do this instead: << ClojurianScopes`
Garth On Fri, Oct 8, 2010 at 12:23 AM, Garth Sheldon-Coulson <g...@mit.edu> wrote: > Hi Sunil, > > Double check that you have the .m files from the Clojuratica distribution > in your Mathematica $Path. The error message you received makes me think > that the file ClojurianScopes.m is not being properly loaded by > Mathematica/Clojuratica. > > You can check this by firing up Mathematica and calling > > Needs["ClojurianScopes`"] > > Also, try > > * (With [(= f 10) (= g 20)]* > * (* f (+ g x))))* > > > Best, > Garth > > > On Mon, Oct 4, 2010 at 11:11 AM, Sunil S Nandihalli < > sunil.nandiha...@gmail.com> wrote: > >> I am sorry for reposting .. I realized that the subject line was not very >> intelligible .. so I am changing the subject line and reposting the same >> message. >> >> Hello everybody, >> I am trying to use clojure along with mathematica. 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 >> >> *(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. >> >> -- >> You received this message because you are subscribed to the Google >> Groups "Clojure" group. >> To post to this group, send email to clojure@googlegroups.com >> Note that posts from new members are moderated - please be patient with >> your first post. >> To unsubscribe from this group, send email to >> clojure+unsubscr...@googlegroups.com<clojure%2bunsubscr...@googlegroups.com> >> For more options, visit this group at >> http://groups.google.com/group/clojure?hl=en > > > -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en