import numpy as np
import matplotlib.pyplot as plt
def plot():
x = np.linspace(0, 1, 100)
y = x ** 2
plt.grid()
plt.plot(x, y, label="$x^{2}$")
plt.legend()
plt.show()
plot()
def tarai(x, y, z):
if x <= y:
return y
else:
return tarai(tarai(x-1, y, z), tarai(y-1, z, x), tarai(z-1, x, y))
%time tarai(12, 6, 0)
!python --version
!pip list
!cat /proc/cpuinfo
!cat /proc/meminfo