Slide 1

Slide 1 text

Doing Math with Python Amit Saha https://echorand.me @echorand

Slide 2

Slide 2 text

Hi! I am @echorand (Thanks Facebook)

Slide 3

Slide 3 text

About me Author of “Doing Math with Python”, No Starch Press, August, 2015 Contributor to SymPy, CPython, creator/maintainer of Fedora Scientific Contact: @echorand, [email protected], http://echorand.me

Slide 4

Slide 4 text

Demos and slides http://bit.ly/mathwithpython

Slide 5

Slide 5 text

Why “Math with Python”? Interactive and enriching teaching and learning experience

Slide 6

Slide 6 text

How? Tools: Python 3, SymPy, matplotlib http://python.org http://sympy.org http://matplotlib.org/

Slide 7

Slide 7 text

How much Math? Algebra Basic statistics, sets and Probability

Slide 8

Slide 8 text

How much Math? Random numbers Basic Calculus

Slide 9

Slide 9 text

How much Python? Defining and Calling functions Loops and Basic Data structures

Slide 10

Slide 10 text

How much Python? Creating objects, attributes Calling methods on objects

Slide 11

Slide 11 text

Let’s get started! Python as a ..

Slide 12

Slide 12 text

#1. Scientific Calculator math, statistics, others (Notebook: Scientific Calculator)

Slide 13

Slide 13 text

Question time!

Slide 14

Slide 14 text

How many lines in a program to do this? Output Input

Slide 15

Slide 15 text

#2. Really Awesome Calculator How to do all the math with Python? SymPy, matplotlib

Slide 16

Slide 16 text

SymPy Basics Programs which understand x and y (Notebooks: SymPy Basics - 1, 2, 3)

Slide 17

Slide 17 text

Create a graph y = 2x2 + 2x + 1 (Notebook: Awesome Calculator - 1)

Slide 18

Slide 18 text

Solve equations 2x2 + 2x + 1 = 0 (Notebook: Awesome Calculator - 2)

Slide 19

Slide 19 text

Solve inequalities sin(x) + 1 <= 0 (Notebook: Awesome Calculator - 3)

Slide 20

Slide 20 text

Question time!

Slide 21

Slide 21 text

Limit of a function (Notebook: Awesome Calculator - 4)

Slide 22

Slide 22 text

Derivative of a function (Notebook: Awesome Calculator - 5)

Slide 23

Slide 23 text

Integral of a function (Notebook: Awesome Calculator - 6)

Slide 24

Slide 24 text

Definite Integral of a function (Notebook: Awesome Calculator - 7)

Slide 25

Slide 25 text

#3. More than smart calculators Interactive notebooks, Animations

Slide 26

Slide 26 text

Uniform and Non-uniform random numbers (Notebook: Uniform and Non-uniform Random numbers)

Slide 27

Slide 27 text

Interactive Notebooks (Notebook: Interactive Notebook Demo)

Slide 28

Slide 28 text

Interactive Barnsley Fern Non-uniform random numbers (Notebook: Interactive Barnsley Fern)

Slide 29

Slide 29 text

Interactive Mandelbrot Set (Notebook: Interactive Mandelbrot Set)

Slide 30

Slide 30 text

Animations (Notebook: Projectile Motion, py-files: projectile_animation.py)

Slide 31

Slide 31 text

Great base for the future Data Science, Machine Learning (Notebooks: Gradient Descent, Simple Linear Regression)

Slide 32

Slide 32 text

That’s all. [email protected] @mathwithpython Check out: https://doingmathwithpython.github.io