News for hackers. Stuff that matters.

Ask HN: Programming to learn math?

Hey Guys,

I'm doing an undergrad in math and would like to learn programming to help me better learn math, are there any intro programming books with a large emphasis on math?

( 12 comments | 13 points | on HN )
Re:Ask HN: Programming to learn math? by tkosan on Monday January 16, 2017 @08:52PM (#13414572)
I am the main developer of the MathPiper open source computer algebra system (http://mathpiper.org). An effective kind of programming language to learn that will help you learn math is a programming language that is part of a computer algebra system. The following video shows MathPiper solving an equation step-by-step:

https://www.youtube.com/watch?v=cy6bwNBkAK0

If you are interested in learning the MathPiper programming language and how this solver works, feel free to contact me using the email address that is in my profile.

Re:Ask HN: Programming to learn math? by HiroshiSan on Tuesday January 17, 2017 @10:03AM (#13418071)
Cool! I'll check out the documentation and definitely shoot you an email if I have any questions.
Re:Ask HN: Programming to learn math? by oveddan on Tuesday January 17, 2017 @04:49AM (#13416219)
Try learning shader programming. It's math based and you draw beautiful visualizations that represent math equations. An excellent tutorial is at http://thebookofshaders.com/
Re:Ask HN: Programming to learn math? by HiroshiSan on Tuesday January 17, 2017 @10:01AM (#13418050)
This is exactly the kind of thing I was looking for thank you.
Re:Ask HN: Programming to learn math? by a-saleh on Tuesday January 17, 2017 @08:04AM (#13417084)
What math would you mean?

Calculus? More on the "building the theory" or "being able to do differential equations"

Algebra? Linear? Group-theory?

Discrete math? Logic? Proofs within logic systems? Completness theorem?

Graph Theory?

There is lots of different parts of math that would be suited to different kinds of projects :-)

Re:Ask HN: Programming to learn math? by tom5 on Wednesday January 18, 2017 @12:56AM (#13424368)
You asked a good question and I do think programming is a good way to help lean math. This is a good book:

Numerical Recipes http://nrbook.com

Re:Ask HN: Programming to learn math? by temp246810 on Tuesday January 17, 2017 @04:19PM (#13421313)
One thing you may be interested is numerical analysis.

You can take this course as part of your major (it's usually required, but sometimes it's an elective).

This will guide you through some basic programming and teach you big O notation to boot.

You'll also do analysis on same basic algorithms.

The only drawback in my opinion is that the course is usually taught in MatLab which you won't be able easily translate into building a small web app or something if you wanted to.

Overall, was very happy with the course - served as an intro to programming of sorts.

Re:Ask HN: Programming to learn math? by Koshkin on Tuesday January 17, 2017 @02:53PM (#13420569)
You can try Functional Differential Geometry by Sussman and Wisdom (which exists both as a printed book and as a freely downloadable PDF file). It is an interesting experiment in teaching mathematics by heavily relying on the computer for doing symbolic transformations, which requires the complete clarity in the notation and the understanding of the material.
Re:Ask HN: Programming to learn math? by ranc1d on Wednesday January 18, 2017 @10:47AM (#13427135)
Alan Downey's books makes use of programming to get across ideas in statistics, probability and complexity if those areas are of interest.

See here books are free to read online.

http://greenteapress.com/wp/

Re:Ask HN: Programming to learn math? by HiroshiSan on Wednesday January 18, 2017 @02:26PM (#13429487)
Wow! What a wonderful resource thanks so much.
Re:Ask HN: Programming to learn math? by rajacombinator on Wednesday January 18, 2017 @05:59PM (#13431274)
I think the other way around makes much more sense ...
Re:Ask HN: Programming to learn math? by trelliscoded on Tuesday January 17, 2017 @12:57PM (#13419571)
The Mathematica book might be what you're looking for.