1. priklad
(%i1) | domain:complex; |
(%i2) | rce:x^3-(a-1)*x^2+a^2*x-a^3=0; |
(%i3) | vysledky:solve(rce, x); |
(%i4) | realne:vysledky[3]; |
(%i5) | define(F(a),realne); |
(%i6) | F(0); |
(%i7) | F(1); |
(%i8) | float(F(2)); |
2. priklad
(%i9) | kill(all); |
(%i1) | s(x):=(if x>=-1 and x<=1 then 1 else 0); |
(%i2) | wxplot2d(s(x),[x,-2,2],[y,-1,2]); |
3. priklad
(%i3) | L(n,x):=(if n=0 then 1 elseif n=1 then x else ((2*n-1)*x*L(n-1,x)-(n-1)*L(n-2,x))/n); |
(%i4) | load(orthopoly); |
(%i5) | expand(legendre_p(7,x)); |
(%i6) | sedmy:L(7,x); |
(%i7) | expand(sedmy); |
4. priklad
(%i8) | kill(all); |
(%i1) | rce1:x^2+y^2=5; |
(%i2) | rce2:x*y=y^2-2; |
(%i3) | soustava:[rce1, rce2]; |
(%i4) | sol:solve([rce1, rce2], [x, y]); |
(%i5) | if numer#false then numer:false else numer:true; |
(%i6) | sol:solve([rce1, rce2], [x, y]); |
(%i7) | ev(soustava, sol[1]); |
(%i8) | ev(soustava, sol[2]); |
(%i9) | ev(soustava, sol[3]); |
5. priklad
(%i10) | kill(all); |
(%i1) | if numer#false then numer:false else numer:true; |
(%i2) | nerce:x<(x-3)^2; |
(%i3) | load(solve_rat_ineq); |
(%i4) | solve_rat_ineq(nerce); |