Sharedukol1.sagewsOpen in CoCalc
Ukol pro prvni cviceni

%html
Priklad 1
Priklad 1
var('y')#deklarace promennych
y
((3*x^2+5*x*y-2*y^2)*(x-y)^3)^2 
(3*x^2 + 5*x*y - 2*y^2)^2*(x - y)^6
expand(_).show()#LaTeXova podoba vystupu
9x1024x9y32x8y2+172x7y3146x6y4188x5y5+484x4y6428x3y7+193x2y844xy9+4y10\displaystyle 9 \, x^{10} - 24 \, x^{9} y - 32 \, x^{8} y^{2} + 172 \, x^{7} y^{3} - 146 \, x^{6} y^{4} - 188 \, x^{5} y^{5} + 484 \, x^{4} y^{6} - 428 \, x^{3} y^{7} + 193 \, x^{2} y^{8} - 44 \, x y^{9} + 4 \, y^{10}
factor(_).show()
(3xy)2(x+2y)2(xy)6\displaystyle {\left(3 \, x - y\right)}^{2} {\left(x + 2 \, y\right)}^{2} {\left(x - y\right)}^{6}
%html
Priklad 2
Priklad 2
((x^2-1)/(3*x^3-11*x^2+13*x-5)).partial_fraction().show()
43x51x1\displaystyle \frac{4}{3 \, x - 5} - \frac{1}{x - 1}
integrate(x^2*sin(x),x).show()#pokud zacnu psat nazev prikazu a dam tabulator, ukazou se mi moznosti, za vyraz dat jeste tecku
(x22)cos(x)+2xsin(x)\displaystyle -{\left(x^{2} - 2\right)} \cos\left(x\right) + 2 \, x \sin\left(x\right)