Skip to content
Permalink
f4c17a541b
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
1899 lines (1899 sloc) 102 KB
{
"cells": [
{
"cell_type": "markdown",
"metadata": {},
"source": [
"###### Content modified under Creative Commons Attribution license CC-BY 4.0, code under BSD 3-Clause License © 2020 R.C. Cooper"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"# Working with Python"
]
},
{
"cell_type": "markdown",
"metadata": {
"slideshow": {
"slide_type": "slide"
}
},
"source": [
"# Good coding habits\n",
"## naming folders and files"
]
},
{
"cell_type": "markdown",
"metadata": {
"slideshow": {
"slide_type": "subslide"
}
},
"source": [
"# [Stanford file naming best practices](https://library.stanford.edu/research/data-management-services/data-best-practices/best-practices-file-naming)\n",
"\n",
"1. Include information to distinguish file name e.g. project name, objective of function, name/initials, type of data, conditions, version of file, \n",
"2. if using dates, use YYYYMMDD, so the computer organizes by year, then month, then day\n",
"3. avoid special characters e.g. !, #, \\$, ...\n",
"4. avoid using spaces if not necessary, some programs consider a space as a break in code use dashes `-` or underscores `_` or CamelCase"
]
},
{
"cell_type": "markdown",
"metadata": {
"slideshow": {
"slide_type": "slide"
}
},
"source": [
"## Commenting your code\n",
"\n",
"Its important to comment your code \n",
"\n",
"- what are variable's units,\n",
"\n",
"- what the is the function supposed to do, \n",
"\n",
"- etc. \n"
]
},
{
"cell_type": "code",
"execution_count": 10,
"metadata": {
"slideshow": {
"slide_type": "subslide"
}
},
"outputs": [],
"source": [
"def code(i):\n",
" '''Example of bad variable names and bad function name'''\n",
" m=1\n",
" for j in range(1,i+1):\n",
" m*=j;\n",
" return m"
]
},
{
"cell_type": "code",
"execution_count": 11,
"metadata": {
"slideshow": {
"slide_type": "subslide"
}
},
"outputs": [
{
"data": {
"text/plain": [
"3628800"
]
},
"execution_count": 11,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"code(10)"
]
},
{
"cell_type": "markdown",
"metadata": {
"slideshow": {
"slide_type": "slide"
}
},
"source": [
"## Choose variable names that describe the variable\n",
"\n",
"You might not have recognized that `code(i)` is meant to calculate the [factorial of a number](https://en.wikipedia.org/wiki/Factorial), \n",
"\n",
"$N!= N*(N-1)*(N-2)*(N-3)*...3*2*1$. \n",
"\n",
"For example, \n",
"\n",
"- 4! = 24\n",
"\n",
"- 5! = 120\n",
"\n",
"- 10! = 3,628,800\n",
"\n",
"In the next block, we have rewritten `code` so the output is unchanged, but another user can read the code *and* help debug if there is an issue. \n",
"\n",
"A function is a compact collection of code that executes some action on its arguments. \n",
"\n",
"Once *defined*, you can *call* a function as many times as you want. When we *call* a function, we execute all the code inside the function. The result of the execution depends on the *definition* of the function and on the values that are *passed* into it as *arguments*. Functions might or might not *return* values in their last operation. \n",
"\n",
"The syntax for defining custom Python functions is:\n",
"\n",
"```python\n",
"def function_name(arg_1, arg_2, ...):\n",
" '''\n",
" docstring: description of the function\n",
" '''\n",
" <body of the function>\n",
"```\n",
"\n",
"The **docstring** of a function is a message from the programmer documenting what he or she built. Docstrings should be descriptive and concise. They are important because they explain (or remind) the intended use of the function to the users. You can later access the docstring of a function using the function `help()` and passing the name of the function. If you are in a notebook, you can also prepend a question mark `'?'` before the name of the function and run the cell to display the information of a function. \n",
"\n",
"Try it!"
]
},
{
"cell_type": "code",
"execution_count": 96,
"metadata": {
"slideshow": {
"slide_type": "subslide"
}
},
"outputs": [],
"source": [
"def factorial_function(input_value):\n",
" '''Good variable names and better help documentation\n",
" \n",
" factorial_function(input_number): calculates the factorial of the input_number\n",
" where the factorial is defined as N*(N-1)*(N-2)*...*3*2*1\n",
" \n",
" Arguments\n",
" ---------\n",
" input_value: an integer >= 0\n",
" \n",
" Returns\n",
" -------\n",
" factorial_output: the factorial of input_value'''\n",
" \n",
" factorial_output=1 # define 0! = 1\n",
" for factor in range(1,input_value+1):\n",
" factorial_output*=factor; # mutliply factorial_output by 1*2*3*...*N (factor)\n",
" return factorial_output\n",
" "
]
},
{
"cell_type": "code",
"execution_count": 97,
"metadata": {
"slideshow": {
"slide_type": "subslide"
}
},
"outputs": [
{
"data": {
"text/plain": [
"24"
]
},
"execution_count": 97,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"factorial_function(4)"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"Defining the function with descriptive variable names and inputs helps to make the function much more useable. \n",
"\n",
"Consider the structure of a Python function:\n",
"\n",
"```python\n",
"def factorial_function(input_value):\n",
"```\n",
"This first line declares that we are `def`-ining a function that is named `factorial_function`. The inputs to the line are given inside the parantheses, `(input_value)`. We can define as many inputs as we want and even assign default values. \n",
"\n",
"```python\n",
" '''Good variable names and better help documentation\n",
" \n",
" factorial_function(input_number): calculates the factorial of the input_number\n",
" where the factorial is defined as N*(N-1)*(N-2)*...*3*2*1'''\n",
"```\n",
"The next 4 lines define a help documentation that can be accessed with in a couple ways:\n",
"\n",
"1. `?factorial_function`\n",
"\n",
"2. `factorial_function?`\n",
"\n",
"3. `help(factorial_function)`\n",
"\n",
"\n"
]
},
{
"cell_type": "code",
"execution_count": 14,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"\u001b[0;31mSignature:\u001b[0m \u001b[0mfactorial_function\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0minput_value\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n",
"\u001b[0;31mDocstring:\u001b[0m\n",
"Good variable names and better help documentation\n",
" \n",
"factorial_function(input_number): calculates the factorial of the input_number\n",
"where the factorial is defined as N*(N-1)*(N-2)*...*3*2*1\n",
"\u001b[0;31mFile:\u001b[0m ~/Documents/UConn/ME3255/ME3255-CompMech/CompMech01-Getting-started/notebooks/<ipython-input-12-618dbbaab728>\n",
"\u001b[0;31mType:\u001b[0m function\n"
]
},
"metadata": {},
"output_type": "display_data"
}
],
"source": [
"factorial_function?"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"```python\n",
" factorial_output=1 # define 0! = 1\n",
"```\n",
"\n",
"This line sets the variable `factorial_output` to 1. In the next 2 lines we update this value based upon the mathematical formula we want to use. In this case, its $1*1*2*3*...*(N-1)*N$\n",
"\n",
"```python\n",
" for factor in range(1,input_value+1):\n",
" factorial_output*=factor; # mutliply m by 1*2*3*...*N (factor)\n",
"``` \n",
"\n",
"These two lines perform the computation that we set out to do. The `for`-loop is going to start at 1 and end at our input value. For each step in the `for`-loop, we will mulitply the factorial_output by the factor. So when we calculate 4!, the loop updates factorial_output 4 times:\n",
"\n",
"1. i=1: factorial_output = $1*1=1$\n",
"\n",
"2. i=2: factorial_output = $1*1*2=2$\n",
"\n",
"3. i=3: factorial_output = $1*1*2*3=6$\n",
"\n",
"4. i=4: factorial_output = $1*1*2*3*4=24$\n",
"\n",
"\n",
"\n",
"```python\n",
" return factorial_output\n",
"```\n",
"\n",
"This final line in our function returns the calculated value, `factorial_output`. We can also return as many values as necessary on this line, \n",
"\n",
"for example, if we had variables: `value_1`, `value_2`, and `value_3` we could return all three as such,\n",
"\n",
"```python\n",
" return value_1,value_2,value_3\n",
"```"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"# Play with NumPy Arrays\n",
"\n",
"\n",
"In engineering applications, most computing situations benefit from using *arrays*: they are sequences of data all of the _same type_. They behave a lot like lists, except for the constraint in the type of their elements. There is a huge efficiency advantage when you know that all elements of a sequence are of the same type—so equivalent methods for arrays execute a lot faster than those for lists.\n",
"\n",
"The Python language is expanded for special applications, like scientific computing, with **libraries**. The most important library in science and engineering is **NumPy**, providing the _n-dimensional array_ data structure (a.k.a, `ndarray`) and a wealth of functions, operations and algorithms for efficient linear-algebra computations.\n",
"\n",
"In this lesson, you'll start playing with NumPy arrays and discover their power. You'll also meet another widely loved library: **Matplotlib**, for creating two-dimensional plots of data."
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## Importing libraries\n",
"\n",
"First, a word on importing libraries to expand your running Python session. Because libraries are large collections of code and are for special purposes, they are not loaded automatically when you launch Python (or IPython, or Jupyter). You have to import a library using the `import` command. For example, to import **NumPy**, with all its linear-algebra goodness, we enter:\n",
"\n",
"```python\n",
"import numpy as np\n",
"```\n",
"\n",
"Once you execute that command in a code cell, you can call any NumPy function using the dot notation, prepending the library name. For example, some commonly used functions are:\n",
"\n",
"* [`np.linspace()`](https://docs.scipy.org/doc/numpy/reference/generated/np.linspace.html)\n",
"* [`np.ones()`](https://docs.scipy.org/doc/numpy/reference/generated/np.ones.html#np.ones)\n",
"* [`np.zeros()`](https://docs.scipy.org/doc/numpy/reference/generated/np.zeros.html#np.zeros)\n",
"* [`np.empty()`](https://docs.scipy.org/doc/numpy/reference/generated/np.empty.html#np.empty)\n",
"* [`np.copy()`](https://docs.scipy.org/doc/numpy/reference/generated/np.copy.html#np.copy)\n",
"\n",
"Follow the links to explore the documentation for these very useful NumPy functions!"
]
},
{
"cell_type": "code",
"execution_count": 15,
"metadata": {},
"outputs": [],
"source": [
"import numpy as np"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## Creating arrays\n",
"\n",
"To create a NumPy array from an existing list of (homogeneous) numbers, we call **`np.array()`**, like this:"
]
},
{
"cell_type": "code",
"execution_count": 16,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"array([ 3, 5, 8, 17])"
]
},
"execution_count": 16,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"np.array([3, 5, 8, 17])"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"NumPy offers many [ways to create arrays](https://docs.scipy.org/doc/numpy/reference/routines.array-creation.html#routines-array-creation) in addition to this. We already mentioned some of them above. \n",
"\n",
"Play with `np.ones()` and `np.zeros()`: they create arrays full of ones and zeros, respectively. We pass as an argument the number of array elements we want. "
]
},
{
"cell_type": "code",
"execution_count": 17,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"array([1., 1., 1., 1., 1.])"
]
},
"execution_count": 17,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"np.ones(5)"
]
},
{
"cell_type": "code",
"execution_count": 18,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"array([0., 0., 0.])"
]
},
"execution_count": 18,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"np.zeros(3)"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"Another useful one: `np.arange()` gives an array of evenly spaced values in a defined interval. \n",
"\n",
"*Syntax:*\n",
"\n",
"`np.arange(start, stop, step)`\n",
"\n",
"where `start` by default is zero, `stop` is not inclusive, and the default\n",
"for `step` is one. Play with it!\n"
]
},
{
"cell_type": "code",
"execution_count": 19,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"array([0, 1, 2, 3])"
]
},
"execution_count": 19,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"np.arange(4)"
]
},
{
"cell_type": "code",
"execution_count": 20,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"array([2, 3, 4, 5])"
]
},
"execution_count": 20,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"np.arange(2, 6)"
]
},
{
"cell_type": "code",
"execution_count": 21,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"array([2, 4])"
]
},
"execution_count": 21,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"np.arange(2, 6, 2)"
]
},
{
"cell_type": "code",
"execution_count": 22,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"array([2. , 2.5, 3. , 3.5, 4. , 4.5, 5. , 5.5])"
]
},
"execution_count": 22,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"np.arange(2, 6, 0.5)"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"`np.linspace()` is similar to `np.arange()`, but uses number of samples instead of a step size. It returns an array with evenly spaced numbers over the specified interval. \n",
"\n",
"*Syntax:*\n",
"\n",
"`np.linspace(start, stop, num)`\n",
"\n",
"`stop` is included by default (it can be removed, read the docs), and `num` by default is 50. "
]
},
{
"cell_type": "code",
"execution_count": 23,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"array([2. , 2.02040816, 2.04081633, 2.06122449, 2.08163265,\n",
" 2.10204082, 2.12244898, 2.14285714, 2.16326531, 2.18367347,\n",
" 2.20408163, 2.2244898 , 2.24489796, 2.26530612, 2.28571429,\n",
" 2.30612245, 2.32653061, 2.34693878, 2.36734694, 2.3877551 ,\n",
" 2.40816327, 2.42857143, 2.44897959, 2.46938776, 2.48979592,\n",
" 2.51020408, 2.53061224, 2.55102041, 2.57142857, 2.59183673,\n",
" 2.6122449 , 2.63265306, 2.65306122, 2.67346939, 2.69387755,\n",
" 2.71428571, 2.73469388, 2.75510204, 2.7755102 , 2.79591837,\n",
" 2.81632653, 2.83673469, 2.85714286, 2.87755102, 2.89795918,\n",
" 2.91836735, 2.93877551, 2.95918367, 2.97959184, 3. ])"
]
},
"execution_count": 23,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"np.linspace(2.0, 3.0)"
]
},
{
"cell_type": "code",
"execution_count": 24,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"50"
]
},
"execution_count": 24,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"len(np.linspace(2.0, 3.0))"
]
},
{
"cell_type": "code",
"execution_count": 25,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"array([2. , 2.2, 2.4, 2.6, 2.8, 3. ])"
]
},
"execution_count": 25,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"np.linspace(2.0, 3.0, 6)"
]
},
{
"cell_type": "code",
"execution_count": 26,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"array([-1. , -0.75, -0.5 , -0.25, 0. , 0.25, 0.5 , 0.75, 1. ])"
]
},
"execution_count": 26,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"np.linspace(-1, 1, 9)"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## Array operations\n",
"\n",
"Let's assign some arrays to variable names and perform some operations with them."
]
},
{
"cell_type": "code",
"execution_count": 27,
"metadata": {},
"outputs": [],
"source": [
"x_array = np.linspace(-1, 1, 9)"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"Now that we've saved it with a variable name, we can do some computations with the array. E.g., take the square of every element of the array, in one go:"
]
},
{
"cell_type": "code",
"execution_count": 28,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"[1. 0.5625 0.25 0.0625 0. 0.0625 0.25 0.5625 1. ]\n"
]
}
],
"source": [
"y_array = x_array**2\n",
"print(y_array)"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"We can also take the square root of a positive array, using the `np.sqrt()` function:"
]
},
{
"cell_type": "code",
"execution_count": 29,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"[1. 0.75 0.5 0.25 0. 0.25 0.5 0.75 1. ]\n"
]
}
],
"source": [
"z_array = np.sqrt(y_array)\n",
"print(z_array)"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"Now that we have different arrays `x_array`, `y_array` and `z_array`, we can do more computations, like add or multiply them. For example:"
]
},
{
"cell_type": "code",
"execution_count": 30,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"[ 0. -0.1875 -0.25 -0.1875 0. 0.3125 0.75 1.3125 2. ]\n"
]
}
],
"source": [
"add_array = x_array + y_array \n",
"print(add_array)"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"Array addition is defined element-wise, like when adding two vectors (or matrices). Array multiplication is also element-wise:"
]
},
{
"cell_type": "code",
"execution_count": 31,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"[-1. -0.5625 -0.25 -0.0625 0. 0.0625 0.25 0.5625 1. ]\n"
]
}
],
"source": [
"mult_array = x_array * z_array\n",
"print(mult_array)"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"We can also divide arrays, but you have to be careful not to divide by zero. This operation will result in a **`nan`** which stands for *Not a Number*. Python will still perform the division, but will tell us about the problem. \n",
"\n",
"Let's see how this might look:"
]
},
{
"cell_type": "code",
"execution_count": 32,
"metadata": {},
"outputs": [
{
"name": "stderr",
"output_type": "stream",
"text": [
"/opt/miniconda3/lib/python3.7/site-packages/ipykernel_launcher.py:1: RuntimeWarning: invalid value encountered in true_divide\n",
" \"\"\"Entry point for launching an IPython kernel.\n"
]
},
{
"data": {
"text/plain": [
"array([-1. , -1.33333333, -2. , -4. , nan,\n",
" 4. , 2. , 1.33333333, 1. ])"
]
},
"execution_count": 32,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"x_array / y_array"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## Multidimensional arrays\n",
"\n",
"### 2D arrays \n",
"\n",
"NumPy can create arrays of N dimensions. For example, a 2D array is like a matrix, and is created from a nested list as follows:"
]
},
{
"cell_type": "code",
"execution_count": 33,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"[[1 2]\n",
" [3 4]]\n"
]
}
],
"source": [
"array_2d = np.array([[1, 2], [3, 4]])\n",
"print(array_2d)"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"2D arrays can be added, subtracted, and multiplied:"
]
},
{
"cell_type": "code",
"execution_count": 34,
"metadata": {},
"outputs": [],
"source": [
"X = np.array([[1, 2], [3, 4]])\n",
"Y = np.array([[1, -1], [0, 1]])"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"The addition of these two matrices works exactly as you would expect:"
]
},
{
"cell_type": "code",
"execution_count": 35,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"array([[2, 1],\n",
" [3, 5]])"
]
},
"execution_count": 35,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"X + Y"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"What if we try to multiply arrays using the `'*'`operator?"
]
},
{
"cell_type": "code",
"execution_count": 36,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"array([[ 1, -2],\n",
" [ 0, 4]])"
]
},
"execution_count": 36,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"X * Y"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"The multiplication using the `'*'` operator is element-wise. If we want to do matrix multiplication we use the `'@'` operator:"
]
},
{
"cell_type": "code",
"execution_count": 37,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"array([[1, 1],\n",
" [3, 1]])"
]
},
"execution_count": 37,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"X @ Y"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"Or equivalently we can use `np.dot()`:"
]
},
{
"cell_type": "code",
"execution_count": 38,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"array([[1, 1],\n",
" [3, 1]])"
]
},
"execution_count": 38,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"np.dot(X, Y)"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"### 3D arrays\n",
"\n",
"Let's create a 3D array by reshaping a 1D array. We can use [`np.reshape()`](https://docs.scipy.org/doc/numpy/reference/generated/np.reshape.html), where we pass the array we want to reshape and the shape we want to give it, i.e., the number of elements in each dimension. \n",
"\n",
"*Syntax*\n",
" \n",
"`np.reshape(array, newshape)`\n",
"\n",
"For example:"
]
},
{
"cell_type": "code",
"execution_count": 39,
"metadata": {},
"outputs": [],
"source": [
"a = np.arange(24)"
]
},
{
"cell_type": "code",
"execution_count": 40,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"[[[ 0 1 2 3]\n",
" [ 4 5 6 7]\n",
" [ 8 9 10 11]]\n",
"\n",
" [[12 13 14 15]\n",
" [16 17 18 19]\n",
" [20 21 22 23]]]\n"
]
}
],
"source": [
"a_3D = np.reshape(a, (2, 3, 4))\n",
"print(a_3D)"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"We can check for the shape of a NumPy array using the function `np.shape()`:"
]
},
{
"cell_type": "code",
"execution_count": 41,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"(2, 3, 4)"
]
},
"execution_count": 41,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"np.shape(a_3D)"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"Visualizing the dimensions of the `a_3D` array can be tricky, so here is a diagram that will help you to understand how the dimensions are assigned: each dimension is shown as a coordinate axis. For a 3D array, on the \"x axis\", we have the sub-arrays that themselves are two-dimensional (matrices). We have two of these 2D sub-arrays, in this case; each one has 3 rows and 4 columns. Study this sketch carefully, while comparing with how the array `a_3D` is printed out above. \n",
"\n",
"<img src=\"../images/3d_array_sketch.png\" style=\"width: 400px;\"/> "
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"When we have multidimensional arrays, we can access slices of their elements by slicing on each dimension. This is one of the advantages of using arrays: we cannot do this with lists. \n",
"\n",
"Let's access some elements of our 2D array called `X`."
]
},
{
"cell_type": "code",
"execution_count": 42,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"array([[1, 2],\n",
" [3, 4]])"
]
},
"execution_count": 42,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"X"
]
},
{
"cell_type": "code",
"execution_count": 43,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"1"
]
},
"execution_count": 43,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"# Grab the element in the 1st row and 1st column \n",
"X[0, 0]"
]
},
{
"cell_type": "code",
"execution_count": 44,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"2"
]
},
"execution_count": 44,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"# Grab the element in the 1st row and 2nd column \n",
"X[0, 1]"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"##### Exercises:\n",
"\n",
"From the X array:\n",
"\n",
"1. Grab the 2nd element in the 1st column.\n",
"2. Grab the 2nd element in the 2nd column."
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"Play with slicing on this array:"
]
},
{
"cell_type": "code",
"execution_count": 45,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"array([1, 3])"
]
},
"execution_count": 45,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"# Grab the 1st column\n",
"X[:, 0]"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"When we don't specify the start and/or end point in the slicing, the symbol `':'` means \"all\". In the example above, we are telling NumPy that we want all the elements from the 0-th index in the second dimension (the first column)."
]
},
{
"cell_type": "code",
"execution_count": 46,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"array([1, 2])"
]
},
"execution_count": 46,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"# Grab the 1st row\n",
"X[0, :]"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"##### Exercises:\n",
"\n",
"From the X array:\n",
"\n",
"1. Grab the 2nd column.\n",
"2. Grab the 2nd row."
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"Let's practice with a 3D array. "
]
},
{
"cell_type": "code",
"execution_count": 47,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"array([[[ 0, 1, 2, 3],\n",
" [ 4, 5, 6, 7],\n",
" [ 8, 9, 10, 11]],\n",
"\n",
" [[12, 13, 14, 15],\n",
" [16, 17, 18, 19],\n",
" [20, 21, 22, 23]]])"
]
},
"execution_count": 47,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"a_3D"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"If we want to grab the first column of both matrices in our `a_3D` array, we do:"
]
},
{
"cell_type": "code",
"execution_count": 48,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"array([[ 0, 4, 8],\n",
" [12, 16, 20]])"
]
},
"execution_count": 48,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"a_3D[:, :, 0]"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"The line above is telling NumPy that we want:\n",
"\n",
"* first `':'` : from the first dimension, grab all the elements (2 matrices).\n",
"* second `':'`: from the second dimension, grab all the elements (all the rows).\n",
"* `'0'` : from the third dimension, grab the first element (first column).\n",
"\n",
"If we want the first 2 elements of the first column of both matrices: "
]
},
{
"cell_type": "code",
"execution_count": 49,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"array([[ 0, 4],\n",
" [12, 16]])"
]
},
"execution_count": 49,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"a_3D[:, 0:2, 0]"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"Below, from the first matrix in our `a_3D` array, we will grab the two middle elements (5,6):"
]
},
{
"cell_type": "code",
"execution_count": 50,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"array([5, 6])"
]
},
"execution_count": 50,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"a_3D[0, 1, 1:3]"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"##### Exercises:\n",
"\n",
"From the array named `a_3D`: \n",
"\n",
"1. Grab the two middle elements (17, 18) from the second matrix.\n",
"2. Grab the last row from both matrices.\n",
"3. Grab the elements of the 1st matrix that exclude the first row and the first column. \n",
"4. Grab the elements of the 2nd matrix that exclude the last row and the last column. "
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## NumPy == Fast and Clean! \n",
"\n",
"When we are working with numbers, arrays are a better option because the NumPy library has built-in functions that are optimized, and therefore faster than vanilla Python. Especially if we have big arrays. Besides, using NumPy arrays and exploiting their properties makes our code more readable.\n",
"\n",
"For example, if we wanted to add element-wise the elements of 2 lists, we need to do it with a `for` statement. If we want to add two NumPy arrays, we just use the addtion `'+'` symbol!\n",
"\n",
"Below, we will add two lists and two arrays (with random elements) and we'll compare the time it takes to compute each addition."
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"### Element-wise sum of a Python list\n",
"\n",
"Using the Python library [`random`](https://docs.python.org/3/library/random.html), we will generate two lists with 100 pseudo-random elements in the range [0,100), with no numbers repeated."
]
},
{
"cell_type": "code",
"execution_count": 51,
"metadata": {},
"outputs": [],
"source": [
"#import random library\n",
"import random"
]
},
{
"cell_type": "code",
"execution_count": 52,
"metadata": {},
"outputs": [],
"source": [
"lst_1 = random.sample(range(100), 100)\n",
"lst_2 = random.sample(range(100), 100)"
]
},
{
"cell_type": "code",
"execution_count": 53,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"[78, 71, 32, 12, 88, 84, 7, 49, 93, 13]\n",
"[24, 70, 98, 72, 17, 48, 82, 55, 87, 54]\n"
]
}
],
"source": [
"#print first 10 elements\n",
"print(lst_1[0:10])\n",
"print(lst_2[0:10])"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"We need to write a `for` statement, appending the result of the element-wise sum into a new list we call `result_lst`. \n",
"\n",
"For timing, we can use the IPython \"magic\" `%%time`. Writing at the beginning of the code cell the command `%%time` will give us the time it takes to execute all the code in that cell. "
]
},
{
"cell_type": "code",
"execution_count": 54,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"CPU times: user 30 µs, sys: 8 µs, total: 38 µs\n",
"Wall time: 41 µs\n"
]
}
],
"source": [
"%%time\n",
"res_lst = []\n",
"for i in range(100):\n",
" res_lst.append(lst_1[i] + lst_2[i])"
]
},
{
"cell_type": "code",
"execution_count": 55,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"[102, 141, 130, 84, 105, 132, 89, 104, 180, 67]\n"
]
}
],
"source": [
"print(res_lst[0:10])"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"### Element-wise sum of NumPy arrays\n",
"\n",
"In this case, we generate arrays with random integers using the NumPy function [`np.random.randint()`](https://docs.scipy.org/doc/numpy-1.13.0/reference/generated/np.random.randint.html). The arrays we generate with this function are not going to be like the lists: in this case we'll have 100 elements in the range [0, 100) but they can repeat. Our goal is to compare the time it takes to compute addition of a _list_ or an _array_ of numbers, so all that matters is that the arrays and the lists are of the same length and type (integers)."
]
},
{
"cell_type": "code",
"execution_count": 56,
"metadata": {},
"outputs": [],
"source": [
"arr_1 = np.random.randint(0, 100, size=100)\n",
"arr_2 = np.random.randint(0, 100, size=100)"
]
},
{
"cell_type": "code",
"execution_count": 57,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"[ 3 67 98 94 87 71 28 60 12 24]\n",
"[29 59 1 45 85 92 17 0 15 58]\n"
]
}
],
"source": [
"#print first 10 elements\n",
"print(arr_1[0:10])\n",
"print(arr_2[0:10])"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"Now we can use the `%%time` cell magic, again, to see how long it takes NumPy to compute the element-wise sum."
]
},
{
"cell_type": "code",
"execution_count": 58,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"CPU times: user 27 µs, sys: 7 µs, total: 34 µs\n",
"Wall time: 39.6 µs\n"
]
}
],
"source": [
"%%time\n",
"arr_res = arr_1 + arr_2"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"Notice that in the case of arrays, the code not only is more readable (just one line of code), but it is also faster than with lists. This time advantage will be larger with bigger arrays/lists. \n",
"\n",
"(Your timing results may vary to the ones we show in this notebook, because you will be computing in a different machine.)"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"##### Exercise\n",
"\n",
"1. Try the comparison between lists and arrays, using bigger arrays; for example, of size 10,000. \n",
"2. Repeat the analysis, but now computing the operation that raises each element of an array/list to the power two. Use arrays of 10,000 elements. "
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## Time to Plot\n",
"\n",
"You will love the Python library **Matplotlib**! You'll learn here about its module `pyplot`, which makes line plots. \n",
"\n",
"We need some data to plot. Let's define a NumPy array, compute derived data using its square, cube and square root (element-wise), and plot these values with the original array in the x-axis. "
]
},
{
"cell_type": "code",
"execution_count": 59,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"[0. 0.05 0.1 0.15 0.2 0.25 0.3 0.35 0.4 0.45 0.5 0.55 0.6 0.65\n",
" 0.7 0.75 0.8 0.85 0.9 0.95 1. 1.05 1.1 1.15 1.2 1.25 1.3 1.35\n",
" 1.4 1.45 1.5 1.55 1.6 1.65 1.7 1.75 1.8 1.85 1.9 1.95 2. ]\n"
]
}
],
"source": [
"xarray = np.linspace(0, 2, 41)\n",
"print(xarray)"
]
},
{
"cell_type": "code",
"execution_count": 60,
"metadata": {},
"outputs": [],
"source": [
"pow2 = xarray**2\n",
"pow3 = xarray**3\n",
"pow_half = np.sqrt(xarray)"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"# Introduction to plotting\n",
"\n",
"To plot the resulting arrays as a function of the orginal one (`xarray`) in the x-axis, we need to import the module `pyplot` from **Matplotlib**.\n",
"\n"
]
},
{
"cell_type": "code",
"execution_count": 61,
"metadata": {},
"outputs": [],
"source": [
"import matplotlib.pyplot as plt"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"# Set up default plotting parameters\n",
"\n",
"The default Matplotlib fonts and linewidths are a little small. Pixels are free, so the next two lines increase the fontsize and linewidth"
]
},
{
"cell_type": "code",
"execution_count": 62,
"metadata": {},
"outputs": [],
"source": [
"plt.rcParams.update({'font.size': 22})\n",
"plt.rcParams['lines.linewidth'] = 3"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"The line `%matplotlib inline` is an instruction to get the output of plotting commands displayed \"inline\" inside the notebook. Other options for how to deal with plot output are available, but not of interest to you right now. "
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"We'll use the **pyplot** `plt.plot()` function, specifying the line color (`'k'` for black) and line style (`'-'`, `'--'` and `':'` for continuous, dashed and dotted line), and giving each line a label. Note that the values for `color`, `linestyle` and `label` are given in quotes."
]
},
{
"cell_type": "code",
"execution_count": 63,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"<matplotlib.legend.Legend at 0x7f856cb8b910>"
]
},
"execution_count": 63,
"metadata": {},
"output_type": "execute_result"
},
{
"data": {
"image/png": "iVB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/Cbn7+aYGuDBB+ZkJytIibHstMsLU1+vAA/h5wFn4XcIOeA/4DbDBOffKOPtZDNTFfD4/SInYBaxLV2hY9mXHlxqGYRhJKYmJa8MwDCM3mJMwDMMwkmJOwjAMw0iKOQnDMAwjKeYkDMMwjKSYkzAMwzCSYk7CMAzDSIo5CcMwDCMp5iQMwzCMpPwfjTPiDdNA6OEAAAAASUVORK5CYII=\n",
"text/plain": [
"<Figure size 432x288 with 1 Axes>"
]
},
"metadata": {
"needs_background": "light"
},
"output_type": "display_data"
}
],
"source": [
"#Plot x^2\n",
"plt.plot(xarray, pow2, color='k', linestyle='-', label='square')\n",
"#Plot x^3\n",
"plt.plot(xarray, pow3, color='k', linestyle='--', label='cube')\n",
"#Plot sqrt(x)\n",
"plt.plot(xarray, pow_half, color='k', linestyle=':', label='square root')\n",
"#Plot the legends in the best location\n",
"plt.legend(loc='best')"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"To illustrate other features, we will plot the same data, but varying the colors instead of the line style. We'll also use LaTeX syntax to write formulas in the labels. If you want to know more about LaTeX syntax, there is a [quick guide to LaTeX](https://users.dickinson.edu/~richesod/latex/latexcheatsheet.pdf) available online.\n",
"\n",
"Adding a semicolon (`';'`) to the last line in the plotting code block prevents that ugly output, like `<matplotlib.legend.Legend at 0x7f8c83cc7898>`. Try it."
]
},
{
"cell_type": "code",
"execution_count": 65,
"metadata": {},
"outputs": [
{
"data": {
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAYkAAAECCAYAAAALqiumAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAALEgAACxIB0t1+/AAAADh0RVh0U29mdHdhcmUAbWF0cGxvdGxpYiB2ZXJzaW9uMy4xLjEsIGh0dHA6Ly9tYXRwbG90bGliLm9yZy8QZhcZAAAgAElEQVR4nO3deVxUVf/A8c9hBwEVATdU1CxxSU0yLS2XtKRcytRstXyy0izrKZXKcsmnbN9se3pMzTRT82dqoVJWalmipoaappn7higmsp/fH3dmYJBlBma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iSIPU4Wsd8yd8nvq6okCesjYq2VUoHF7HNloX1Lsgu4AIQppZoXs08nJ8qrbFx9vEpTp8Drf4rdq/qo6ONf1Vl/Xx7/21JKvQw8AaQAvbXWO8pQjEt/X1UiSWitDwKbMf5SHVx4u1LqOozK02MY7RtKKy8L+MayeGcR5TUDumA8h7yizIGbxNXHywFDLPM/tNbV/vaJCce/qrP+vjaWuFclp5R6CXgKo/uf3lrrrWUpx+W/L7NbE7qwVeJt5LcivKTA+kggmSKaoWNUcu0C5hRR3pXkd8vRqcD6YPJbj3pytxwuO14Yt+XuAPwLrVfA3UC6pbwHzf7eLjx+1t9AsS2IMe6V7wJedMXx9+SpPMcL44m5mwHvQut9MP7qzrWUfYPZ37Mcx2eq5TukAh0dfE+F/L5MPzguPtDvWb78BWAZ8CVw1rJuSRE/skmWbd8XU944y/YcYBXwBXDcsm4DEGT2d64Mx8vyn1gDaRh/zS22lLfPsl4D75j9fct5rK6w/JtbpzTL99pdcH2h98yy7DPLFcffkyZXHi9goGV9CsZfvguBBIxWw9qSJMaZ/Z3Lcaz6F/h/stFyHIqaJpjx+6oqj8ACoLUepZRaB4zG6J/EGyPTzgTe11rnOVney0qpbcC/Ma4sAjBOfG8Dr2qtM10Zf0Vz4fE6CLyCcYwuwXiW3QvjcnYB8JHW+jsXh1/RQoGriljfooh1DnH177WSceXx2gq8hVEP2ASjlbAGDgGfADO01pvKGGdlEFbgdaxlKsoPwEuOFuqq35cMXyqEEKJYVaLiWgghhHtIkhBCCFEsSRJCCCGKJUlCCCFEsSRJCCGEKJYkCSGEEMWSJCGEEKJYkiSEEEIUS5KEEEKIYv0/tyHBxPpHlfUAAAAASUVORK5CYII=\n",
"text/plain": [
"<Figure size 432x288 with 1 Axes>"
]
},
"metadata": {
"needs_background": "light"
},
"output_type": "display_data"
}
],
"source": [
"#Plot x^2\n",
"plt.plot(xarray, pow2, color='red', linestyle='-', label='$x^2$')\n",
"#Plot x^3\n",
"plt.plot(xarray, pow3, color='green', linestyle='-', label='$x^3$')\n",
"#Plot sqrt(x)\n",
"plt.plot(xarray, pow_half, color='blue', linestyle='-', label='$\\sqrt{x}$')\n",
"#Plot the legends in the best location\n",
"plt.legend(loc='best'); "
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"That's very nice! By now, you are probably imagining all the great stuff you can do with Jupyter notebooks, Python and its scientific libraries **NumPy** and **Matplotlib**. We just saw an introduction to plotting but we will keep learning about the power of **Matplotlib** in the next lesson. \n",
"\n",
"If you are curious, you can explore all the beautiful plots you can make by browsing the [Matplotlib gallery](http://matplotlib.org/gallery.html)."
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"##### Exercise:\n",
"\n",
"Pick two different operations to apply to the `xarray` and plot them the resulting data in the same plot. "
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## What we've learned\n",
"\n",
"* Good coding habits and file naming\n",
"* How to define a function and return outputs\n",
"* How to import libraries\n",
"* Multidimensional arrays using NumPy\n",
"* Accessing values and slicing in NumPy arrays\n",
"* `%%time` magic to time cell execution.\n",
"* Performance comparison: lists vs NumPy arrays\n",
"* Basic plotting with `pyplot`."
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## References\n",
"\n",
"1. [Best practices for file naming](https://library.stanford.edu/research/data-management-services/data-best-practices/best-practices-file-naming). Stanford Libraries\n",
"\n",
"1. _Effective Computation in Physics: Field Guide to Research with Python_ (2015). Anthony Scopatz & Kathryn D. Huff. O'Reilly Media, Inc.\n",
"\n",
"2. _Numerical Python: A Practical Techniques Approach for Industry_. (2015). Robert Johansson. Appress. \n",
"\n",
"2. [\"The world of Jupyter\"—a tutorial](https://github.com/barbagroup/jupyter-tutorial). Lorena A. Barba - 2016"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"# Problems\n",
"\n",
"1. Create a function called `sincos(x)` that returns two arrays, `sinx` and `cosx` that return the sine and cosine of the input array, `x`. \n",
"\n",
" a. Document your function with a help file in `'''help'''`\n",
" \n",
" b. Use your function to plot sin(x) and cos(x) for x=$0..2\\pi$\n",
"\n"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"def sincos(x):\n",
" '''help'''\n",
" # your code here, replace '''help''' with your documentation\n",
" \n",
" return sinx, cosx\n",
" "
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"2. Use a for-loop to create a variable called `A_99`, where every element is the product\n",
"of the two indices from 0 to 9 e.g. A_99[3,2]=6 and A_99[4,4]=16. \n",
"\n",
" a. time your script using `%%time` \n",
" \n",
" b. Calculate the mean of `A_99`\n",
"\n",
" c. Calculate the standard deviation of `A_99`\n",
" \n"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"3. Use the two arrays, X and Y, given below to create A_99 using numpy array math rather than a for-loop. \n",
"\n",
" a. time your script using `%%time` \n",
" \n",
" b. Calculate the mean of `A_99`\n",
"\n",
" c. Calculate the standard deviation of `A_99`\n",
" \n",
" d. create a filled contour plot of X, Y, A_99 [contourf plot documentation](https://matplotlib.org/3.1.1/api/_as_gen/matplotlib.pyplot.contourf.html)"
]
},
{
"cell_type": "code",
"execution_count": 72,
"metadata": {},
"outputs": [],
"source": [
"# given X and Y arrays\n",
"X,Y=np.meshgrid(np.arange(0,10),np.arange(0,10))"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"4. The following linear interpolation function has an error. It is supposed to return y(x) given the the two points $p_1=[x_1,~y_1]$ and $p_2=[x_2,~y_2]$. Currently, it just returns and error."
]
},
{
"cell_type": "code",
"execution_count": 92,
"metadata": {},
"outputs": [],
"source": [
"def linInterp(x,p1,p2):\n",
" '''linear interplation function\n",
" return y(x) given the two endpoints \n",
" p1=np.array([x1,y1])\n",
" and\n",
" p2=np.array([x2,y2])'''\n",
" slope = (p2[2]-p1[2])/(p2[1]-p1[1])\n",
" \n",
" return p1[2]+slope*(x - p1[1])\n",
" "
]
},
{
"cell_type": "code",
"execution_count": 93,
"metadata": {},
"outputs": [
{
"ename": "IndexError",
"evalue": "index 2 is out of bounds for axis 0 with size 2",
"output_type": "error",
"traceback": [
"\u001b[0;31m---------------------------------------------------------------------------\u001b[0m",
"\u001b[0;31mIndexError\u001b[0m Traceback (most recent call last)",
"\u001b[0;32m<ipython-input-93-db508f40e1df>\u001b[0m in \u001b[0;36m<module>\u001b[0;34m\u001b[0m\n\u001b[1;32m 2\u001b[0m \u001b[0mp1\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0mnp\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0marray\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m[\u001b[0m\u001b[0;36m0\u001b[0m\u001b[0;34m,\u001b[0m\u001b[0;36m1\u001b[0m\u001b[0;34m]\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 3\u001b[0m \u001b[0mp2\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0mnp\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0marray\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m[\u001b[0m\u001b[0;36m2\u001b[0m\u001b[0;34m,\u001b[0m\u001b[0;36m2\u001b[0m\u001b[0;34m]\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m----> 4\u001b[0;31m \u001b[0mlinInterp\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;36m1\u001b[0m\u001b[0;34m,\u001b[0m\u001b[0mp1\u001b[0m\u001b[0;34m,\u001b[0m\u001b[0mp2\u001b[0m\u001b[0;34m)\u001b[0m \u001b[0;31m# answer should be 1.5\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m",
"\u001b[0;32m<ipython-input-92-711e290f4cb8>\u001b[0m in \u001b[0;36mlinInterp\u001b[0;34m(x, p1, p2)\u001b[0m\n\u001b[1;32m 5\u001b[0m \u001b[0;32mand\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 6\u001b[0m p2=np.array([x2,y2])'''\n\u001b[0;32m----> 7\u001b[0;31m \u001b[0mslope\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0;34m(\u001b[0m\u001b[0mp2\u001b[0m\u001b[0;34m[\u001b[0m\u001b[0;36m2\u001b[0m\u001b[0;34m]\u001b[0m\u001b[0;34m-\u001b[0m\u001b[0mp1\u001b[0m\u001b[0;34m[\u001b[0m\u001b[0;36m2\u001b[0m\u001b[0;34m]\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m/\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mp2\u001b[0m\u001b[0;34m[\u001b[0m\u001b[0;36m1\u001b[0m\u001b[0;34m]\u001b[0m\u001b[0;34m-\u001b[0m\u001b[0mp1\u001b[0m\u001b[0;34m[\u001b[0m\u001b[0;36m1\u001b[0m\u001b[0;34m]\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m 8\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 9\u001b[0m \u001b[0;32mreturn\u001b[0m \u001b[0mp1\u001b[0m\u001b[0;34m[\u001b[0m\u001b[0;36m2\u001b[0m\u001b[0;34m]\u001b[0m\u001b[0;34m+\u001b[0m\u001b[0mslope\u001b[0m\u001b[0;34m*\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mx\u001b[0m \u001b[0;34m-\u001b[0m \u001b[0mp1\u001b[0m\u001b[0;34m[\u001b[0m\u001b[0;36m1\u001b[0m\u001b[0;34m]\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n",
"\u001b[0;31mIndexError\u001b[0m: index 2 is out of bounds for axis 0 with size 2"
]
}
],
"source": [
"# test cases for linInterp\n",
"p1=np.array([0,1])\n",
"p2=np.array([2,2])\n",
"linInterp(1,p1,p2) # answer should be 1.5"
]
},
{
"cell_type": "code",
"execution_count": 94,
"metadata": {},
"outputs": [
{
"ename": "IndexError",
"evalue": "index 2 is out of bounds for axis 0 with size 2",
"output_type": "error",
"traceback": [
"\u001b[0;31m---------------------------------------------------------------------------\u001b[0m",
"\u001b[0;31mIndexError\u001b[0m Traceback (most recent call last)",
"\u001b[0;32m<ipython-input-94-7b3f7f87fb7f>\u001b[0m in \u001b[0;36m<module>\u001b[0;34m\u001b[0m\n\u001b[1;32m 1\u001b[0m \u001b[0mp1\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0mnp\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0marray\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m[\u001b[0m\u001b[0;36m11\u001b[0m\u001b[0;34m,\u001b[0m\u001b[0;34m-\u001b[0m\u001b[0;36m3\u001b[0m\u001b[0;34m]\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 2\u001b[0m \u001b[0mp2\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0mnp\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0marray\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m[\u001b[0m\u001b[0;36m12\u001b[0m\u001b[0;34m,\u001b[0m\u001b[0;34m-\u001b[0m\u001b[0;36m5\u001b[0m\u001b[0;34m]\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m----> 3\u001b[0;31m \u001b[0mlinInterp\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;36m11.25\u001b[0m\u001b[0;34m,\u001b[0m\u001b[0mp1\u001b[0m\u001b[0;34m,\u001b[0m\u001b[0mp2\u001b[0m\u001b[0;34m)\u001b[0m \u001b[0;31m# answer should be -3.5\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m",
"\u001b[0;32m<ipython-input-92-711e290f4cb8>\u001b[0m in \u001b[0;36mlinInterp\u001b[0;34m(x, p1, p2)\u001b[0m\n\u001b[1;32m 5\u001b[0m \u001b[0;32mand\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 6\u001b[0m p2=np.array([x2,y2])'''\n\u001b[0;32m----> 7\u001b[0;31m \u001b[0mslope\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0;34m(\u001b[0m\u001b[0mp2\u001b[0m\u001b[0;34m[\u001b[0m\u001b[0;36m2\u001b[0m\u001b[0;34m]\u001b[0m\u001b[0;34m-\u001b[0m\u001b[0mp1\u001b[0m\u001b[0;34m[\u001b[0m\u001b[0;36m2\u001b[0m\u001b[0;34m]\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m/\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mp2\u001b[0m\u001b[0;34m[\u001b[0m\u001b[0;36m1\u001b[0m\u001b[0;34m]\u001b[0m\u001b[0;34m-\u001b[0m\u001b[0mp1\u001b[0m\u001b[0;34m[\u001b[0m\u001b[0;36m1\u001b[0m\u001b[0;34m]\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m 8\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m 9\u001b[0m \u001b[0;32mreturn\u001b[0m \u001b[0mp1\u001b[0m\u001b[0;34m[\u001b[0m\u001b[0;36m2\u001b[0m\u001b[0;34m]\u001b[0m\u001b[0;34m+\u001b[0m\u001b[0mslope\u001b[0m\u001b[0;34m*\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mx\u001b[0m \u001b[0;34m-\u001b[0m \u001b[0mp1\u001b[0m\u001b[0;34m[\u001b[0m\u001b[0;36m1\u001b[0m\u001b[0;34m]\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n",
"\u001b[0;31mIndexError\u001b[0m: index 2 is out of bounds for axis 0 with size 2"
]
}
],
"source": [
"p1=np.array([11,-3])\n",
"p2=np.array([12,-5])\n",
"linInterp(11.25,p1,p2) # answer should be -3.5"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
}
],
"metadata": {
"celltoolbar": "Slideshow",
"kernelspec": {
"display_name": "Python 3",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.7.5"
}
},
"nbformat": 4,
"nbformat_minor": 4
}