MATLAB , , 2.85093+11, 10. double. MATLAB short , .
:
res=5.345*2.868/3.14-99.455+1.274
:
res = -93.2990
res, :
format long
res
Enter :
res = -93.29900636942675
MATLAB. , ( Enter) :
format short
. double : +, -, *, / ^. . , .
, Enter.
MATLAB . , ( , ) () . help elfun. 1 .
, :
2*asin(1)
, :
ans = 3.1416,
. MATLAB : pi. MATLAB , , ( : round, : fix). mod , sign , lcm , perms nchoosek . , .
double . .
|
|
1, 0. , .
:
a=1; b=2; c=3;
res=(a<b)+(c~=b)+(b==a)
:
res = 2
, 2:
(), (). ( ) ( ). Ȼ ( ), 1 (); Ȼ 0 (). Ȼ 0 () , ( ) . Ż . .