CoCalc Public Filessage-9.0.ipynbOpen with one click!
Author: Harald Schilly
Views : 103
Compute Environment: Ubuntu 18.04 (Deprecated)

SageMath 9.0 on CoCalc

Kernel: "SageMath 9.0"

In [1]:
import sys sys.version
'3.7.3 (default, Jan 1 2020, 17:01:17) \n[GCC 7.4.0]'
In [2]:
EllipticCurve('420a').plot()
In [3]:
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
In [4]:
%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
In [5]:
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
In [ ]:
In [1]:
S = SimplicialComplex([[1,4], [2,4]]) S
Simplicial complex with vertex set (1, 2, 4) and facets {(1, 4), (2, 4)}
In [3]:
S.add_face([1,3]) S
Simplicial complex with vertex set (1, 2, 3, 4) and facets {(1, 3), (1, 4), (2, 4)}
In [4]:
S.automorphism_group()
Permutation Group with generators [(1,4)(2,3)]
In [9]:
S.flip_graph()
In [ ]:
In [ ]:
In [6]:
f(x,y) = x^2 + y^2 plot3d(f, (-1,1), (-1,1))
In [ ]:
In [ ]: