CoCalc Shared Files10. Sagetex / proba-sage-jupyter.ipynbOpen in CoCalc with one click!
Author: Ivica Nakić
In [1]:
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}
In [2]:
sage.version.version
'6.10'
In [4]:
%display latex
In [5]:
x, b, c = var('x b c') solve([x^2 + b*x + c == 0],x)
[x=12b12b24c,x=12b+12b24c]\left[x = -\frac{1}{2} \, b - \frac{1}{2} \, \sqrt{b^{2} - 4 \, c}, x = -\frac{1}{2} \, b + \frac{1}{2} \, \sqrt{b^{2} - 4 \, c}\right]
In [ ]: