CoCalc Shared Files10. Sagetex / sage-primjer.sagewsOpen in CoCalc with one click!
Author: Ivica Nakić
1+1
2
a=5 type(a)
a = 5/3 type(a)
<type 'sage.rings.rational.Rational'>
a = 'hello' type(a)
<type 'str'>
x, b, c = var('x b c') solve([x^2 + b*x + c == 0],x)
[x == -1/2*b - 1/2*sqrt(b^2 - 4*c), x == -1/2*b + 1/2*sqrt(b^2 - 4*c)]
y = function('y', x) desolve(diff(y,x,x) + x*diff(y,x) + y == 0, y, [0,0,1]) show(desolve(diff(y,x,x) + x*diff(y,x) + y == 0, y, [0,0,1]))
-1/2*I*sqrt(2)*sqrt(pi)*erf(1/2*I*sqrt(2)*x)*e^(-1/2*x^2)
12i2πerf(12i2x)e(12x2)-\frac{1}{2} i \, \sqrt{2} \sqrt{\pi} \text{erf}\left(\frac{1}{2} i \, \sqrt{2} x\right) e^{\left(-\frac{1}{2} \, x^{2}\right)}
a, q, k, n = var('a, q, k, n') show(sum(a*q^k, k, 0, n))
aqn+1aq1\frac{a q^{n + 1} - a}{q - 1}
latex(sum(a*q^k, k, 0, n))
\frac{a q^{n + 1} - a}{q - 1}
show(arcsin(1))
12π\frac{1}{2} \, \pi

Ovo je naslov

%latex Ovo je formula $\alpha=1$
%html Ovo je <strong>HTML kod</strong>.
Ovo je HTML kod.
typeset_mode(true)
a=5/3 a
53\frac{5}{3}

Tangent line grapher

Interact: please open in CoCalc
sage.version.version
'7.5'