CoCalc lets you use Linux, Python, LaTeX, Jupyter notebooks and much more in your browser! Pivately share with collaborators. Changes are synchronized in realtime.
SharedJupyter_Example.ipynbOpen in CoCalc
5*4
20
sin(pi/6)
1/2
f(x) = sin(x)/x^2
f(pi)
0
f(1)
sin(1)
plot(f, 1, 10)
f(x) = 4*x*(1-x)
plot(f, 0, 1, aspect_ratio=1)
identity(x) = x
plot(identity, 0, 1, aspect_ratio=1, color="red")
plt = plot(f, 0, 1, aspect_ratio=1) + \
        plot(identity, 0, 1, aspect_ratio=1, color="red")
plt
x = 1/3
y = f(x)
path = [(x,x), (x, y)]
plt + line2d(path, color="green")
for i in range(10):
    print(i)
0 1 2 3 4 5 6 7 8 9
x = 1/3
y = f(x)
path = [(x,x), (x, y)]
for i in range(10):
    x = y
    y = f(x)
    path.append( (x,x) )
    path.append( (x,y) )
plt + line2d(path, color="green")
f(8/9)
32/81