Live data from Hacker News

SymPy makes math fun again

wordsandbuttons.online

61–70 of 96 posts

Re: SymPy makes math fun again

#62

Learning how to derive the taylor series or memorizing the formulas with some rough understanding of how to derive them sounds easier than learning a programming language Regarding his low exam performance , this is why classes are sometimes graded on a curve. Intro calc. is pretty easy, and the author def. seems smart enough to do well. Likely his class was unusually hard. Sometimes that happens..luck of the draw.

Well, you have to understand how Taylor series work anyway. And then, of course, you have to understand differentiation. SymPy doesn't rob you of mathematical knowledge it just automates the grind.

Of course, there is nothing wrong in doing symbolic computations by hand. But it's like walking vs. riding a bicycle. You're still getting from A to B but you save some time and energy with the machine.

Re: SymPy makes math fun again

#64
Hello, OP here.

I wrote a whole book around the idea that mathematics is understanding first and symbolic computation second. In Geometry for Programmers, SymPy does the grind for you in every chapter (except chapter 2). Initially, I was even going to omit all the math notation altogether and turn all the formulas into Python snippets. But several reviewers said that this is too much, so now there are formulas you can see and snippets you can run.

https://www.manning.com/books/geometry-for-programmers

Re: SymPy makes math fun again

#69

I like sagemath. They have integration with sympy, and they also have many features making python simpler when you want to do mathematical things. There's latex display feature when in notebook. It looks good, can even have symbolical matrices and display them as you would've expected. It's on par with Wolfram notebook, but you get to program in python instead of some propietary language. If you got some really long…

> It's on par with Wolfram notebook, but you get to program in python instead of some propietary language.

I‘m not sure if that’s a good thing, considering how nice and well-suited to maths the Wolfram language is.

I get that you need to learn yet another language, but you would also need to learn the particularities of Sagemath and/or the libraries it builds on.

Re: SymPy makes math fun again

#70
post #58
post #14

Earlier quoted context omitted.

Just write: a, b, c, d, f, g, h, i, j, k, l, m, n, p, q, r, s, t, u, v, w, x, y, z = var('a, b, c, d, f, g, h, i, j, k, l, m, n, p, q, r, s, t, u, v, w, x, y, z') At the top of your Jupyter notebook, right after your import lines, and copy and paste it everywhere else. It's really not a big deal! You can always redefine these variables to other things later, if you need to. Mathematica costs $387 for the "home deskto…

You can leave out the assignment, `var` already injects the variables into the local scope. IIRC, the commas are redundant.

Into global scope.
Post reply on HN