Re: How to simplify formula in place (eg by sympy)
Giovanni Piredda <[email protected]> Wed, 2 Oct 2024 18:10:15 +0000
| Newsgroups | gmane.editors.texmacs.user |
|---|---|
| Message-ID | <[email protected]> |
On 02/10/24 17:29, proitheus wrote: > > The maxima plugin works! Thank you! > > Well, here are some more strange questions: > > * Does |maxima| the only plugin which supports this sort of > evaluation? I tried python, r, octave, but none will work. > * And are there some place where I can see which feature a plugin > supports? > Giac works for me as well (I did 2+2). I searched in the code (looking for one of the Giac menu items using ack, so that I would find where it is defined) and I _think_ I figured out a part of the answer: you have to look inside the ...-menus.scm Scheme file inside the progs subdirectory of the plugin. Some of the plugins there use a (if (not-in-session?) ...) clause where in the true branch they evaluate a (link scripts-eval-menu) form. I did not understand where the scripts-eval-menu is defined; the name has "scripts" inside, so maybe it does _that_; and Python does not have it. > * I noticed that |cos<space>x| will drive maxima mad, it requires me > to add parents around |x|. But texmacs formulas have semantic > information, and it could be used to improve the interface to CASs > I think. So are there any CAS plugin which ultilizes this info? > > I don't know and I am not able to figure it out in a short time, sorry. Perhaps one of the developers is listening and can tell you more. TeXmacs is opaque sometimes; I am thinking of starting a Wikibook but if ever I do it, it will take time. Giovanni