From: ehm <eri...@gm...> - 2024-10-15 13:28:45
|
Hi Daniel, I'm sorry you're having trouble with the package. Let's see if we can figure it out. The top level file "qm.mac" loads the other .mac and .lisp files. But file_search_maxima needs to see the whole directory. I'm on Linux, but I think the following might work with slight changes. In my maxima-init.mac file I have: /* ---------------------------------------------------------- */ file_search_maxima : append(["/home/ehm/math/Maxima/share/**/*.mac"],file_search_maxima )$ file_search_demo : append(["/home/ehm/math/Maxima/share/**/*.mac"],file_search_demo )$ /* ---------------------------------------------------------- */ I'm not sure how to specify wildcards for the subdirectories on Windows. Maybe try file_search_maxima : append(["D:/USERS/wxMaxima/**/*.mac"],file_search_maxima)$ If someone else is on Windows and knows how to set this please let us know! -Eric On Tue, 2024-10-15 at 12:36 +0000, Daniel Volinski via Maxima-discuss wrote: > > Hi Eric, > > Thank you very much for this package! > > However, I was not able to use it yet. > I downloaded the package from github, I unzip it and put it in > D:\USERS\wxMaxima\qm-maxima. I'm using Windows 10. > I used qm_examples-1.wxmx in directory docs\examples > I save it as qm_examples-1.wxm in which I did some changes. > > When I run qm_examples-1.wxm with no changes, I get > file_search1: qm not found in > file_search_maxima,file_search_lisp. > This is obvious because I'm not pointing to the directory > > So I added load("D:/USERS/wxMaxima/qm-maxima/qm"); > instead of load(qm); but I get > file_search1: "qm.lisp" not found in > file_search_maxima,file_search_lisp. > > I change it to load("D:/USERS/wxMaxima/qm-maxima/qm.mac"); > but I get: > file_search1: "qm.lisp" not found in > file_search_maxima,file_search_lisp. > > I added: > file_search_maxima:cons(sconcat("D:/USERS/wxMaxima/qm- > maxima/###.{lisp,mac,mc}"),file_search_maxima)$ > file_search_lisp:cons(sconcat("D:/USERS/wxMaxima/qm- > maxima/###.{lisp,mac,mc}"),file_search_lisp)$ > before the load("D:/USERS/wxMaxima/qm-maxima/qm.mac"); but I get > file_search1: "qm-index.lisp" not found in > file_search_maxima,file_search_lisp. > > This qm-index.lisp file is in the docs directory. It seems odd that > the > normal functioning of the package depends on a file in the docs > directory. > > I added: > file_search_maxima:cons(sconcat("D:/USERS/wxMaxima/qm- > maxima/docs/###.{lisp,mac,mc}"),file_search_maxima)$ > file_search_lisp:cons(sconcat("D:/USERS/wxMaxima/qm- > maxima/docs/###.{lisp,mac,mc}"),file_search_lisp)$ > I get: > While evaluating the form starting at line 5, column 0 > of #P"D:/USERS/wxMaxima/qm-maxima/docs/qm-index-html.lisp":; > ; compilation unit aborted > ; caught 1 fatal ERROR condition > loadfile: failed to load D:/USERS/wxMaxima/qm-maxima/docs/qm-index- > html.lisp > > At this point I gave up and decided to write this letter. > What is the proper way to point at your package? > > Thanks again, > > Daniel Volinski > > > > > > En viernes, 11 de octubre de 2024, 23:31:40 GMT+3, ehm > <eri...@gm...> escribió: > > > > > > Hi All, > > I'm announcing the availability of the qm-maxima package for > performing > quantum mechanical calculations in a finite dimensional Hilbert > space. > The package is located on my Github site: > https://github.com/QMeqGR/qm-maxima > > Thanks to Robert Dodier and Barton Willis for their contributions > that > have greatly improved the package. > > I've expanded the functionality considerably since I first posted > about > the package here. It is geared toward undergrad and graduate students > learning QM. The pdf doc is nearing 30 pages and gives lots of detail > on how the package works and how to use it. Using the package, I can > solve probably 60% of the problems I assign in my undergraduate > quantum > class. > > I bring it up now because I submitted an abstract to the American > Association of Physics Teachers (AATP) meeting scheduled for Jan 2025 > to present the package. I'll have a 12 minute talk and I plan to > spend > about 3 slides on Maxima itself before talking about my package. > (There > are a few things I wanted to bring up with everyone before I put my > Maxima slides together, but I'll post about that separately.) > > So if any of you are interested in playing with the package, or just > looking through the examples given in the docs, I would appreciate > any > feedback! > > Best regards, > Eric > > > > > _______________________________________________ > Maxima-discuss mailing list > Max...@li... > https://lists.sourceforge.net/lists/listinfo/maxima-discuss > > > _______________________________________________ > Maxima-discuss mailing list > Max...@li... > https://lists.sourceforge.net/lists/listinfo/maxima-discuss |