8 lines
111 B
Matlab
8 lines
111 B
Matlab
x=input('请输入x的值:');
|
|
if x==10
|
|
y=cos(x+1)+sqrt(x*x+1);
|
|
else
|
|
y=(3^(1/2))*sqrt(x+sqrt(x));
|
|
end
|
|
y
|