Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- %A = fix(rand(3,3)*70-20);
- %disp(A);
- %disp(det(A));
- %disp(rank(A));
- %b = [];
- %for i=1:3
- % b = [b A(i,3-i+1)];
- %end
- %disp(b);
- % gamocdaze:
- [x1 x2 x3 x4] = solve('x1+x2+x3-2*x4=4', '2*x1+3*x2-x3+x4=1', '4*x1-2*x2-6*x3+0*x4=2', '5*x1+4*x2-5*x3+2*x4=1')
- clc
- A = [1,2;3,4]
- B = [3,5;5,9]
- x = A\B
- det(A)
- rank(A)
- det(B)
- rank(B)
- c = [1,2,3,4]
- d = [5,6,7,8]
- dot(c,d)
- clc
- eig(A)
- eig(B)
- [v, r] = eig(A)
- [v, r] = eig(B)
- clc
- clear
- syms x;
- limit((x^3+1)/(x^2+1), x, -1)
- limit(sqrt(1+cos(x))/sin(x), x, pi, 'right')
- clc
- clear
- syms x y r a
- r = 2*x + 3*y;
- z = subs(r,{x,y}, {2,3})
- diff(x^a, x, 1)
- clc
- clear
- syms x
- int(2*x^3+3*x-1, 0, 5)
- quad(@(y)2*y.^3+3*y-1, 0, 5)
- dblquad(@(y,z)2*y.^3+3*z-1, 0, 5, 0, 5)
- clc
- clear
- x = 5;
- p = [2 0 3 -1] %polinomis koeficientebi
- polyval(p, x)
- clc
- clear
- syms k
- symsum((2*k-1)/(2^k), 1, 10)
Advertisement
Add Comment
Please, Sign In to add comment