解方程,见补充
问题描述:
解方程,见补充
x+1/(x+1)=a+1/(a-1)
答
z1 = 20;z2 = 80;hatx = 1;at = 20;AT1= [at-5:0.1:at+15]; for i=1:length(AT1) at1=AT1(i); A2 = (z1+z2)*cosd(at)/cosd(at1)+2*hatx-z1; C1 = (z1*cosd(at))^2; C2 = (z2*cosd(at))^2; D = (z1+z2)*cosd(at)*tand(at1); f=@(x)4*((z1-hatx+x)^2+((hatx-x)*cotd(at))^2-C1)^0.5+((A2-x)^2-C2)^0.5-D; xx=fzero(f0); %这个命令只能找出一个实数解17at1值较小时好像没有实数解 x1(i)=xx; endplot(AT1dhlx1)我完全看不懂!