.


:




:

































 

 

 

 


,




endfunction , function y=f(t) y=t^2/sqrt(3+sin(t)) endfunction function y=f(t),y=t^2/sqrt(3+sin(t)),endfunction

.

function y=f(x) y=2*x./(sin(x)+1.5)endfunctionz=intg(2,5.3,f), disp(z)   30.437056

Scilab

fsolve(x0,f),

x0 , f , f(x)=0.

, :

  deff('y=F(x)', 'y=sin(2*x)-cos(3*x.^2)-sin(3*x)')root=fsolve(7,F)disp(root)   6.9755674

roots(a),

n+1(n ).

n.

.

  v=[3 1 -10 -8]R=roots(v)disp(R)   2. - 1.3333333 - 1.

 

.

v=[3 1 -10 8]R=roots(v)disp(R) - 2.2935835 0.9801251 + 0.4494650i 0.9801251 - 0.4494650i

 

roots , poly :

poly(a, x, f1),

a , x - , f1 , 'c' 'r' ( roots coeff ).

, ,

p=poly([3 -2 1 0 4],'x','c')disp(p)

 

:

p=poly([-8 -10 1 3],'x','c')R=roots(p)disp(R) 2. - 1.3333333 - 1.

 

Scilab :

- ;

- .

:

AX=B,

, , :

= \ B

, :

X=inv(A)*B

,

:

A=[3 1;-3 5]; B=[-4;36]; X=inv(A)*B, disp(X) X1=A\B, disp(X1) - 3.1111111 5.3333333

 

 

fsolve(x0,f),

x0 , f ,

, :

function [y]=fun(x) y(1)=2*x(1)+x(2)-6 y(2)=x(1)^2+x(2)^2-14endfunctionX0=[1;1]R=fsolve(X0,fun)disp(R) 1.2338096 3.5323808

 

 

1.





:


: 2017-02-28; !; : 452 |


:

:

,
==> ...

1690 - | 1630 -


© 2015-2024 lektsii.org - -

: 0.009 .