matlab求解方程.f=x*sin(y)+((pi*12/4+(60-x)*tan(pi/9))+48*y)*tan(
来源:学生作业帮 编辑:作业帮 分类:数学作业 时间:2024/05/22 12:48:14
matlab求解方程.f=x*sin(y)+((pi*12/4+(60-x)*tan(pi/9))+48*y)*tan(pi/9)=0,其中x范围为30到60,求y.
你这个就是一个式子,而不是方程,是超越的,没法直接求解,只能得到一系列的关系点.
>> syms x y
>> f=x*sin(y)+((pi*12/4+(60-x)*tan(pi/9))+48*y)*tan(pi/9);
>> ezplot(f,[30 60 -1 1])
>> x=30:60;
>> f1=eval(f);
>> n=length(f1);
>> for i=1:n
y(i)=solve(f1(i));
end
>> y=subs(y)
y =
Columns 1 through 12
-0.1564 -0.1504 -0.1446 -0.1391 -0.1338 -0.1287 -0.1238 -0.1191 -0.1146 -0.1102 -0.1059 -0.1018
Columns 13 through 24
-0.0979 -0.0941 -0.0904 -0.0868 -0.0833 -0.0800 -0.0767 -0.0736 -0.0705 -0.0676 -0.0647 -0.0619
Columns 25 through 31
-0.0591 -0.0565 -0.0539 -0.0514 -0.0490 -0.0466 -0.0443
>>
>> syms x y
>> f=x*sin(y)+((pi*12/4+(60-x)*tan(pi/9))+48*y)*tan(pi/9);
>> ezplot(f,[30 60 -1 1])
>> x=30:60;
>> f1=eval(f);
>> n=length(f1);
>> for i=1:n
y(i)=solve(f1(i));
end
>> y=subs(y)
y =
Columns 1 through 12
-0.1564 -0.1504 -0.1446 -0.1391 -0.1338 -0.1287 -0.1238 -0.1191 -0.1146 -0.1102 -0.1059 -0.1018
Columns 13 through 24
-0.0979 -0.0941 -0.0904 -0.0868 -0.0833 -0.0800 -0.0767 -0.0736 -0.0705 -0.0676 -0.0647 -0.0619
Columns 25 through 31
-0.0591 -0.0565 -0.0539 -0.0514 -0.0490 -0.0466 -0.0443
>>
matlab求解方程.f=x*sin(y)+((pi*12/4+(60-x)*tan(pi/9))+48*y)*tan(
已知函数f(x)=tan(pi/2),则y=f(pi/2-x)sinx在区间【0,pi】上的大致图像为什么?
y=0.75sin(x+Pi/4) ( x属于[-pi,pi])的减区间
matlab 三角函数 y=sin(x) x=0:pi/50:pi 积分后 作图
matlab三维图程序:[X,Y]=meshgrid([200:2:300],[-pi/4:pi/100:pi/4]);
求函数y=3tan(2x+pi/4)的定义域,周期和单调区间
怎么用matlab计算出pi/2=x+arccos(tan(pi/4-x/2)中未知数x的值
Matlab的作图命令,x = 0:pi/100:2*pi; y = sin(x); plot(x,y)
matlab画y=4*exp(-x)*sin(2*pi*x)的曲线
matlab中 x=[0:0.15:2*pi]; y=[0:0.15:2*pi]; z=sin(y‘)*cos(x);
matlab >> syms x y;x=linspace(0,2*pi,60);y=(sin(x)*cos(5*x))
matlab中y=(0.5+3.*sin(x*pi/180)./(1+x^2)).*cos(x*pi/180);哪里错了