From: Robert D. <rob...@gm...> - 2025-08-08 06:01:37
|
On Thu, Aug 7, 2025 at 1:09 PM Michael Gough <inn...@gm...> wrote: > > I need to prevent maxima from maxima from simplifying a subexpression. Let’s say I have x+x. > > Try as I might, I can not keep it from becoming 2x. Mike, take a look at a little package I wrote called superq (for superquote). You can find it in the folder robert-dodier/superq at: https://github.com/maxima-project-on-github/maxima-packages You can load the superq.lisp file there and then you can say stuff like superq(1 + 1) and it stays unsimplified. It's kind of clumsy but maybe it's workable. One thing that I see now that didn't get implemented is a way to unbox a superquoted expression so that it just becomes ordinary again. If you're interested, I can try to figure it out. Simplification and pattern matching and all that stuff is a lot of fun; if you say more about what you're doing maybe I can provide some ideas. Robert |