[ADD] Week 3 code and week 2 optional
This commit is contained in:
parent
24cd82aaf1
commit
14122815a1
55
01_Coursera_3.ipynb
Normal file
55
01_Coursera_3.ipynb
Normal file
@ -0,0 +1,55 @@
|
|||||||
|
{
|
||||||
|
"cells": [
|
||||||
|
{
|
||||||
|
"cell_type": "code",
|
||||||
|
"execution_count": 1,
|
||||||
|
"metadata": {},
|
||||||
|
"outputs": [
|
||||||
|
{
|
||||||
|
"data": {
|
||||||
|
"text/plain": [
|
||||||
|
"24"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"execution_count": 1,
|
||||||
|
"metadata": {},
|
||||||
|
"output_type": "execute_result"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"source": [
|
||||||
|
"b = 4;\n",
|
||||||
|
"f(x) = b*x\n",
|
||||||
|
"f(6)"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"cell_type": "code",
|
||||||
|
"execution_count": null,
|
||||||
|
"metadata": {},
|
||||||
|
"outputs": [],
|
||||||
|
"source": [
|
||||||
|
"function updateSIR(popnvector)\n",
|
||||||
|
" susceptibles = popnvector[1];\n",
|
||||||
|
" infecteds = popnvector[2];\n",
|
||||||
|
" removeds = popnvector[3];\n",
|
||||||
|
" newS = \n",
|
||||||
|
"end"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"metadata": {
|
||||||
|
"kernelspec": {
|
||||||
|
"display_name": "Julia 1.2.0",
|
||||||
|
"language": "julia",
|
||||||
|
"name": "julia-1.2"
|
||||||
|
},
|
||||||
|
"language_info": {
|
||||||
|
"file_extension": ".jl",
|
||||||
|
"mimetype": "application/julia",
|
||||||
|
"name": "julia",
|
||||||
|
"version": "1.2.0"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"nbformat": 4,
|
||||||
|
"nbformat_minor": 4
|
||||||
|
}
|
1060
03_Coursera_2.ipynb
1060
03_Coursera_2.ipynb
File diff suppressed because one or more lines are too long
1086
04_Coursera_2.ipynb
1086
04_Coursera_2.ipynb
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
230
coursera_week2_function.ipynb
Normal file
230
coursera_week2_function.ipynb
Normal file
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user