r/engineering • • Jun 14 '21

[PROJECT] Second year calculus done entirely in PYTHON: No pencil or paper is required! Included are things that are traditionally a pain to deal with, such as path and surface integrals. See comments for more info

https://youtu.be/Teb28OFMVFc

[removed] — view removed post

55 Upvotes

1 comment sorted by

7

u/JackStrawng Jun 14 '21

In this video, I use the python packages sympy and scipy to solve most of the problems encoutered in typical second year calculus courses. Sympy is used for all symbolic manipulation and can even be used to solve for certain integrals analytically. Often times, the sorts of integrals encoutered cannot be solved analytically and require some sort of numerical technique. This is what scipy is used for.

Covered here is basic 3D geometry, multidimensional derivatives (gradients, directional derivatives), multiple integrals, scalar and vector path integrals, and scalar and vector surface integrals. Everything is done using a computer: not pencil or paper is required.

For those of you in physics: learning these programming skills for second year calculus problems is good training so that you can eventually solve more complicated problems in Lagrangian mechanics (entirely using a computer, with no pencil or paper required). I have many videos specifically on these topics as well.