News for hackers. Stuff that matters.
Re:SymPy: Symbolic Mathematics in Python by toolslive on Wednesday February 28, 2024 @12:46PM (#39541321)
There are plenty of situations where the scenario goes like this: you first do symbolical calculations. then fill in some of the free variables, your resulting expression will simplify a lot. Then you compile that resulting expression to native code and evaluate the simplified specialized code for a zillion parameter vectors.

Anyway,if your day job needs something like this you're better off using a lisp than python.

Re:SymPy: Symbolic Mathematics in Python by thebiss on Friday March 01, 2024 @12:03PM (#39563828)
For those of us that have never touched lisp - can you explain why?
Re:SymPy: Symbolic Mathematics in Python by toolslive on Wednesday March 06, 2024 @05:04PM (#39622272)
Lisp has quote, unquote, and friends allowing you to turn code into data, then manipulate it and then turn it back into code. These are all the tools you need to create on-the-fly compilers. Here's an article explaining the lost art:

http://gms.freeshell.org/peval.html