{{{id=1| x /// x }}} {{{id=2| parent(x) /// Symbolic Ring }}} {{{id=3| x^2+4 /// x^2 + 4 }}} {{{id=4| var('y') /// y }}} {{{id=5| parent(y) /// Symbolic Ring }}} {{{id=6| var('u v') /// (u, v) }}} {{{id=7| parent(u) /// Symbolic Ring }}} {{{id=8| f=(x+y)^3 f /// (x + y)^3 }}} {{{id=9| g=expand(f) g /// x^3 + 3*x^2*y + 3*x*y^2 + y^3 }}} {{{id=10| f.expand() /// x^3 + 3*x^2*y + 3*x*y^2 + y^3 }}} {{{id=11| g /// x^3 + 3*x^2*y + 3*x*y^2 + y^3 }}} {{{id=12| factor(g) /// (x + y)^3 }}} {{{id=13| factor(442) /// 2 * 13 * 17 }}} {{{id=14| show(diff(exp(-2*x),x)) /// }}}
Integral: $\int_0^{\pi}\sin(x) dx$
{{{id=15| integrate(sin(x),x,0,pi) /// 2 }}} {{{id=16| integral(sin(x),x,0,pi) /// 2 }}} {{{id=18| integral(sin(x),(x,0,pi)) /// 2 }}} {{{id=19| parent(v) /// Symbolic Ring }}} {{{id=20| reset('v') /// }}} {{{id=21| parent(v) /// Traceback (most recent call last): File "Integral $\int_1^\infty ae^{-x}dx$
{{{id=35| var('a') integral(a*exp(-x),x,1,oo) /// a*e^(-1) }}} {{{id=36| integral(exp(-a*x),x,1,oo) /// Traceback (most recent call last): File "$\int_1^{\pi/3} \frac{\tan(x)}{x}dx$
{{{id=39| h=integral(tan(x)/x,(x,1,pi/3)) show(h) /// }}} {{{id=41| h.n() /// 0.07571599101702896 }}} {{{id=42| f /// x |--> x^2 + x }}} {{{id=43| p=plot(f,x,-3,5,color="orange") p /// }}} {{{id=44| parent(p) ///Reihen: $\sum_{n\geq 1} a_n$
{{{id=57| a(n)=1/n^2 sum(a(n),n,1,oo) /// 1/6*pi^2 }}} {{{id=59| f(x)=x^2-2*x-3 solutions = solve(f(x)==0,x) print solutions /// [ x == 3, x == -1 ] }}} {{{id=60| solutions[0] /// x == 3 }}} {{{id=61| f.subs(solutions[0]) /// x |--> 0 }}} {{{id=62| f(solutions[0]) /// (x == 3)^2 - 2*(x == 3) - 3 }}} {{{id=63| solutionlist = solve(f(x)==0,x,solution_dict=True) print solutionlist /// [{x: 3}, {x: -1}] }}} {{{id=64| print solutionlist[0] print solutionlist[0][x] /// {x: 3} 3 }}} {{{id=65| N1=point((solutionlist[0][x],0),color="red",size=50) N2=point((solutionlist[1][x],0),color="red",size=50) plot(f,x,-2,4)+N1+N2 /// }}} {{{id=66| find_root(f,-2,0) /// -0.9999999999999986 }}} {{{id=67| f5(x)=x^3-5*x+5 plot(f5,x,-5,3) /// }}} {{{id=68| solve(f5(x)==0,x) /// [x == -1/2*(5/18*sqrt(7)*sqrt(3) - 5/2)^(1/3)*(I*sqrt(3) + 1) - 1/6*(-5*I*sqrt(3) + 5)/(5/18*sqrt(7)*sqrt(3) - 5/2)^(1/3), x == -1/2*(5/18*sqrt(7)*sqrt(3) - 5/2)^(1/3)*(-I*sqrt(3) + 1) - 1/6*(5*I*sqrt(3) + 5)/(5/18*sqrt(7)*sqrt(3) - 5/2)^(1/3), x == (5/18*sqrt(7)*sqrt(3) - 5/2)^(1/3) + 5/3/(5/18*sqrt(7)*sqrt(3) - 5/2)^(1/3)] }}} {{{id=69| find_root(f5,-3,-2) /// -2.627365084711833 }}} {{{id=71| Px=QQ[x] /// }}} {{{id=72| parent(Px) ///