y
.
In [ ]:
math.ceil
and math.floor
functions do?
In [ ]:
y
, where $x$ is 2.
In [ ]:
In [ ]:
In [ ]:
In [ ]:
help(range)
)
In [ ]:
In [ ]:
In [ ]:
In [ ]:
sin(x)
for x
$\in$ [$0$, $\pi/4$, $\pi /2$, $3 \pi /4$... $2 \pi$].
In [ ]:
print(some_list)
[100,-99,98,-97,96,...,0]
In [ ]:
In [ ]:
Create a $3 \times 3$ list of lists with the integers 0-8:
[[0,1,2],
[3,4,5],
[6,7,8]]
Multiply the whole array by 5 and then take the natural log of all values (elementwise). What is the sum of the right-most column?
In [ ]:
sin(x)
for x
$\in$ [$0$, $\pi/4$, $\pi /2$, $3 \pi /4$... $2 \pi$].
In [ ]:
In [ ]:
matplotlib
to plot $sin(x)$ for x
$\in$ [$0$, $\pi/4$, $\pi /2$, $3 \pi /4$... $2 \pi$]. Use both orange points and a green line.
In [ ]:
You measure the doubling times of bacterial strains A-D under identical conditions.
strain | doubling time (min) |
---|---|
A | 20 |
B | 25 |
C | 39 |
D | 53 |
Assuming you start with a single cell and have nutrients in excess, you can calculate the number of bacteria $N(t)$ in a culture after $t$ minutes according to:
$$N(t) = 2^{t/d}$$
In [ ]:
In [ ]:
matplotlib
to create a single graph that shows $N(t)$ for all four bacterial strains from 0 to 18 hr. Make sure you label your axes appropriately.
In [ ]: