, , MATLAB.
, , ( ). , , , .
( ) | ||
- | ||
:
1. . , , .
2. , ( ), ( ).
3. , , , . , .
4. , .
, , , : Y, minX, minY, maxX, maxY. , .
, , MATLAB.
1.1. , :
: .
, :
. , : X=4 Z=2
. , ( ):
X=4
Z=2
Y=log((X^2+Z^2)*(X-Z)/(X+Z+X*Z))/((5*X/3*Z)-(1/(sqrt(X)+sqrt(Z)))^2)*exp(sqrt(2*X^3+3*Z^2))
.
, .
X=4
Z=2
Y=log((X^2+Z^2)*(X-Z)/(X+Z+X*Z))/((5*X/3*Z)-(1/(sqrt(X)+sqrt(Z)))^2)*exp(sqrt(2*X^3+3*Z^2))
:
X=4
Z=2
Y=log((X^2+Z^2)*(X-Z)/(X+Z+X*Z))/((5*X/3*Z)-(1/(sqrt(X)+sqrt(Z)))^2)*exp(sqrt(2*X^3+3*Z^2))
MATLAB:
Y=
1.0905e+04
1.2. , :
:
, :
. , :
M=3
H=5
Q=1
. ,
|
|
A=sqrt(abs(Q/H))-(1/(M^3))
B=(sin(A)^2)
C=(acos(B))^3
D=((3*M+2))
E=exp(D)
R=(M*M)+H*H/(Q*Q)
G=log2(R)
P=exp(G)
L=abs(H+Q*M)
K=log(L)
V=P/K
T=abs(Q)+V
U=log2(R)
O=abs(Q*Q-M)
I=U-O
Z=A/I
. , :
Z=A/I
MATLAB:
Z=
0.1329
1.3. , :
. , , :
function[L,minX,minY,maxX,maxY]=f(a,b,s,Y)
. , :
%[L,minX,minY,maxX,maxY]
%(a,b,s,Y)
f L,minX,minY,maxx,maxY ( a,b,s,Y o) . , .
if (a>=-5)&& (b<5) && (a<b)
. : Y
x=a:s:b
. , :Y
J=(log10(abs(x.^3+(asin(x.^2-2*x)+10))));
F=(log(abs(x.^2+4*x+1)).^2./(x.^2-3*x-4));
T=sqrt((exp(x).*(1-log(2))./(2.^x)));
. , :
L=J+F./T
. , , , : . . , , .
if Y==5
plot(x,L,'b+--')
grid
end
:
L=0,minX=0,minY=0,maxX=0,maxY=0
if (a>=-5)&& (b<5) && (a<b)
x=a:s:b
J=(log10(abs(x.^3+(asin(x.^2-2*x)+10))));
F=(log(abs(x.^2+4*x+1)).^2./(x.^2-3*x-4));
T=sqrt((exp(x).*(1-log(2))./(2.^x)));
L=J+F./T
if Y==5
plot(x,L,'b+--')
grid
end
[minY,IndminY]=min(L)
minX=x(IndminY);
[maxY,IndmaxY]=max(L)
maxX=x(IndmaxY);
end
MATLAB:
L =
L =
minX =
minY =
maxX =
maxY =
x =
Columns 1 through 7
1.0000 1.1000 1.2000 1.3000 1.4000 1.5000 1.6000
Columns 8 through 11
1.7000 1.8000 1.9000 2.0000
L =
Columns 1 through 7
0.1459 0.1026 0.0634 0.0275 -0.0060 -0.0377 -0.0686
Columns 8 through 11
-0.0995 -0.1313 -0.1648 -0.2011
minY =
-0.2011
IndminY =
maxY =
0.1459
IndmaxY =
ans =
Columns 1 through 7
0.1459 0.1026 0.0634 0.0275 -0.0060 -0.0377 -0.0686
Columns 8 through 11
-0.0995 -0.1313 -0.1648 -0.2011