[HN Gopher] SymPy makes math fun again
___________________________________________________________________
SymPy makes math fun again
Author : okaleniuk
Score : 34 points
Date : 2023-02-25 21:09 UTC (1 hours ago)
(HTM) web link (wordsandbuttons.online)
(TXT) w3m dump (wordsandbuttons.online)
| rsfern wrote:
| The interactive js visualizations are super cool, I didn't know
| SymPy could do that
|
| Lately I've been using SymPy and Pluto.jl together, it's been
| great for deriving results and making interactive visualizations
| for numerical code at the same time
| notpushkin wrote:
| I think the visualization isn't made by SymPy, just the
| formulas for JS.
| rsfern wrote:
| Oh, so you have to hook it up to a js plotting library then?
| Still seems cool, I knew SymPy could emit LaTeX but I didn't
| know it could do js too
| thatcherc wrote:
| Have you checked out Symbolics.jl? It's a lot like SymPy.jl but
| with all the niceness of a implementation in native Julia
| instead of a python binding.
| notpushkin wrote:
| I've solved some Math assignments using SymPy on my sophomore
| year in uni. One time instead of writing them down to paper (the
| assignment was like "you have 24 hours to take these 20
| integrals"), I've just shown the script I coded to my teacher and
| got an A.
|
| (And I have dropped out the very same year then :-)
| kzrdude wrote:
| Some more advanced sympy usage by the following guy on youtube
| (jupyter notebooks / code available). He describes these in
| videos, and not in writing, they were very useful as an
| introduction to equation solving in Sympy.
|
| See https://www.youtube.com/watch?v=SZdZeT93C1s
| Qem wrote:
| Fun, free and full. No need to fork hundreds of dollars for a
| Mathematica license.
| mr_mitm wrote:
| Depends on your usecase. Mathematica is orders of magnitudes
| more powerful.
| abdullahkhalids wrote:
| The fact that you have to declare every single variable makes it
| a non-starter for me.
|
| In Mathematica, I have written calculations that involve dozens
| of variables. In sympy that will be very annoying.
| wging wrote:
| In some use cases you should be able to just use `var` for a
| simpler call pattern:
| https://docs.sympy.org/latest/modules/core.html#var
|
| (it puts things in the global namespace, but for the typical
| calculator use case that's probably fine)
|
| (Sage seems to work like this too - it may use sympy under the
| hood)
___________________________________________________________________
(page generated 2023-02-25 23:00 UTC)