Demos from class and more!
An Introduction to Numerical Methods
Python introduction.
Additional resources for the python tutorial offered by TAs (Sept 3 and 4)
Using python to create music
Floating point storage, arithmetic, rounding and more!
Obtaining cost and complexity from plots
Using smaller storage systems and more
Approximating functions using Taylor Series
Performing numerical experiments using Monte Carlo methods.
Using Monte Carlo methods to predict stock prices
Linear transformations, norms and sparse matrices.
Linear system of equations and matrix conditioning
Solving ODEs and PDEs using interpolation methods
Power iteration algorithms
A nice application of eigenvalue problems!
Basic algorithms to solve nonlinear system of equations
Using different methods to find roots
Solving 1d and Nd optimization problems
Solving optimization with steepest descent methods
Brief introduction to SVD
Data fitting with least squares
Brief intro to principal components analysis
Using least squares to choose your starting Fantasy team
Using PCA in soccer data
Using sklearn to solve simple classification problems
You can have access to the demos in different ways:
.ipynb
file and run locally.py
file and run locallyWe encourage you to install Python and the Numpy+Scipy+Matplotlib stack on your personal computer. For example, you may want to install Anaconda, which is a (free) Python distribution that includes Numpy+Scipy+Matplotlib and other useful libraries.
1) Launching jupyter notebook in CBTF:
Enter jupyter notebook
in the terminal and a browser will start with the jupyter notebook environment.
2) Since you don’t have access to any Python online documentation at CBTF, you can use the help
method, which call the built-in Python help system:
help(object_name)
For example, if you want to get more information about numpy.array
, you can try this:
import numpy
help(numpy.array)