Contact Us!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutSign UpSign In

Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place. Commercial Alternative to JupyterHub.

| Download
Path: sage.md
Views: 42
Image: ubuntu2204

This is SageMath

A markdown cell:

version()

solving equations

x, y = var('x y') solve(2*x^2 + 1, x) # second example, two equations: ex1 = (x + y)^2 - 1 ex2 = x - y == 1 solve([ex1, ex2], [x, y])

some plotting

x = SR.var("x") sines = [plot(c*sin(x), (-2*pi,2*pi), color=Color(c,0,0), ymin=-1, ymax=1) for c in sxrange(0,1,.2)] show(sum(sines))