CoCalc Public Filestmp / 2015-04-15-084215.sagewsOpen in with one click!
Authors: Harald Schilly, ℏal Snyder, William A. Stein
g = graphs.RandomGNM(40, 50) # 15 vertices and 20 edges show(g) g.incidence_matrix()
d3-based renderer not yet implemented
40 x 50 sparse matrix over Integer Ring
%time n= factorial(10^7)
CPU time: 3.14 s, Wall time: 3.14 s
%time m=n*n
CPU time: 1.31 s, Wall time: 1.31 s
%var x y z g = golden_ratio; r = 4.77 p = 2 - (cos(x + g*y) + cos(x - g*y) + cos(y + g*z) + cos(y - g*z) + cos(z - g*x) + cos(z + g*x)) show(implicit_plot3d(p, (x, -r, r), (y, -r, r), (z, -r, r), plot_points=30, color='orange', mesh=1, opacity=.7), spin=1)
3D rendering not yet implemented
plot(sin)
2/3
2/3
sphere()
3D rendering not yet implemented
2+3
5