Documente Academic
Documente Profesional
Documente Cultură
1
I.
II.
x 1.75 *10 3
Q1
100 x ctgy
A2 sh
III.
2.1
( x cos y )
2
| x cos y |
ln
( x cos y )
| sin y | x
x 2 cos 2 y
;
De calculat valorile funciei pe segmentul dat n N puncte
la intervale egale unul de altul. Optimizai programul
folosind variabilele intermediare.
[N=
y ( x) ln(| x | 1)( x 2 sin x arcsin x)
1,3]
7
II.
>> x=-1.75*10^-3;
>> y=3.1*pi;
>>
Q1=(abs(x)*(1+2*x*x)/(100*x+cot(y)))^2.1+(100*x+cot(y)+sin(y))/
(x*x*(1+2*x*x))
Q1 =
8.4691e+005
>>A2=sinh((x*x+cos(y)*cos(y))^3/sqrt(abs(x-cos(y))))+log(abs((xcos(y))/x*x+cos(y)*cos(y)))+abs(sin(y))*x
A2 =
1.4514
>> whos
Name
A2
Q1
x
y
III.
Size
1x1
1x1
1x1
1x1
>> a=-1;
>> b=3;
>> n=7;
>> h=(b-a)/(n-1)
Bytes Class
8
8
8
8
double
double
double
double
Attributes
h=
0.6667
>> x=a:h:b
x=
Columns 1 through 5
-1.0000 -0.3333
0.3333
1.0000
1.6667
Columns 6 through 7
2.3333
3.0000
>> y=log(abs(x)+1).*(x.*x.*sin(x)+asin(x))
y=
Columns 1 through 2
-1.6721
-0.1082
Columns 3 through 4
0.1082
1.6721
Columns 5 through 6
4.2527 - 1.0776i 6.6310 - 1.7951i
Column 7
3.9383 - 2.4437i