Re:Maxima – A Computer Algebra System built with Lisp
by jgalt212 on Monday September 14, 2020 @09:46AM
(#24470049)
I've had good success with wxMaxima as well, but none of the equations I've worked with can fill a blackboard. SymPy is very nice as well, but for obvious reasons, it feels a bit more forced when interacting with it.
Re:Maxima – A Computer Algebra System built with Lisp
by lokedhs on Monday September 14, 2020 @10:51AM
(#24470821)
Do you accept the output from Climaxima? Granted, the project isn't near finished (currently held back due to some dependency issues).
I included some example videos in this reply: https://news.ycombinator.com/item?id=24467593
Re:Maxima – A Computer Algebra System built with Lisp
by ogogmad on Monday September 14, 2020 @12:25PM
(#24472008)
I use Sympy interactively, and I don't know what you mean by "forced". It doesn't feel that way to me.
Re:Maxima – A Computer Algebra System built with Lisp
by jgalt212 on Monday September 14, 2020 @09:58PM
(#24477170)
this is a bit rush, but an example setting up the quadratic equation.
f(x) := a*x^2 + b*x + c
solve( f(x),x );
from sympy import symbols, solve
a, b, c, x = sympy.symbols(('a', 'b', 'c', 'x'))
y = sympy.Eq(a*x**2+b*x+c, 0)
solve(y, x)
Re:Maxima – A Computer Algebra System built with Lisp
by ogogmad on Tuesday September 15, 2020 @02:45AM
(#24478514)
I would change the first two lines to:
from sympy.abc import *
from sympy import *
I would put that into a file, and auto-load it at startup so I don't need to run it manually every time - one way of doing that is using iPython profiles.Also put this in your startup file to get more pleasant looking output:
init_printing(use_unicode=True)
Once you've done that, you only need to type: y = a*x**2 + b*x + c
solve(y,x)
Re:Maxima – A Computer Algebra System built with Lisp
by forgotpwd16 on Tuesday September 15, 2020 @04:49AM
(#24479168)
SymPy already comes with `isympy` script that will import everything from SymPy and create some common symbols (x, y, z, t, k, m, n, f, g, h) using either `python` or `ipython` (default). To do what you said the following script may be run.
#!/usr/bin/env python
from sympy.abc import *
from sympy import *
import code
init_printing()
code.interact(local=locals())
What do you mean? wxMaxima has worked fine for me.