Commit 401a9952 authored by Anders.Goksoyr's avatar Anders.Goksoyr
Browse files

Upload New File

parent 1ebeead8
%% Cell type:markdown id: tags:
# Exercises Runde June, 2019, Torbjörn Lundh
%% Cell type:markdown id: tags:
https://www.dropbox.com/s/0fkzceg7halzxn4/Bacterias_Cod_Lundh.pdf?dl=0
%% Cell type:code id: tags:
``` python
# Lindear ODE basic example
import numpy
from scipy.integrate import odeint
import matplotlib.pyplot as plt
def f(y,x):
return x
x0=0
y0=0
xi=numpy.linspace(x0,5,100)
yi=odeint(f,y0,xi)
plt.plot(xi, yi)
plt.show()
```
%% Cell type:code id: tags:
``` python
#Basic turtle example
import turtle
turtle.penup()
for i in range(20):
turtle.forward(100)
turtle.backward(100)
turtle.exitonclick()
```
%% Cell type:code id: tags:
``` python
```
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment