Contact
CoCalc Logo Icon
StoreFeaturesDocsShareSupport News AboutSign UpSign In
| Download
Project: Testing 18.04
Views: 253
Kernel: SageMath 9.0

SageMath 9.0 on CoCalc

Kernel: "SageMath 9.0"

import sys sys.version
'3.7.3 (default, Jan 1 2020, 17:01:17) \n[GCC 7.4.0]'
EllipticCurve('420a').plot()
Image in a Jupyter notebook
from admcycles import sepbdiv, psiclass 3*sepbdiv(1,(1,2),3,4) - psiclass(4,3,4)^2
Graph : [1, 2] [[1, 2, 5], [3, 4, 6]] [(5, 6)] Polynomial : 3* Graph : [3] [[1, 2, 3, 4]] [] Polynomial : (-1)*psi_4^2
%timeit 12983419826482143*1238746219837469817324
The slowest run took 33.17 times longer than the fastest. This could mean that an intermediate result is being cached. 1000000 loops, best of 5: 347 ns per loop
g1 = plot(sin(x^2), (x, 0, 6), axes_labels=['$x$', '$y$'], axes=False, frame=True, gridlines='minor') y = var('y') g2 = streamline_plot((sin(x), cos(y)), (x,-3,3), (y,-3,3), aspect_ratio=1) g3 = graphs.DodecahedralGraph().plot() g4 = polar_plot(sin(5*x)^2, (x, 0, 2*pi), color='green', fontsize=8) \ + circle((0,0), 0.5, rgbcolor='red', fill=True, alpha=0.1, legend_label='pink') g4.set_legend_options(loc='upper right') G = graphics_array([[g1, g2], [g3, g4]]) G
Image in a Jupyter notebook
S = SimplicialComplex([[1,4], [2,4]]) S
Simplicial complex with vertex set (1, 2, 4) and facets {(1, 4), (2, 4)}
S.add_face([1,3]) S
Simplicial complex with vertex set (1, 2, 3, 4) and facets {(1, 3), (1, 4), (2, 4)}
S.automorphism_group()
Permutation Group with generators [(1,4)(2,3)]
S.flip_graph()
Image in a Jupyter notebook
f(x,y) = x^2 + y^2 plot3d(f, (-1,1), (-1,1))