哪位热心人能帮我用matlab解三元 三角函数方程组
解方程组求θ1,θ2,atan(θ1)=(1-a^2)*sin(θ2)/((1+a^2)*cos(θ2)-2*a)tan(θ2-0.4887)=(1-a^2)*sin(θ...
解方程组 求θ1,θ2,a
tan(θ1)=(1-a^2)*sin(θ2)/((1+a^2)*cos(θ2)-2*a)
tan(θ2-0.4887)=(1-a^2)*sin(θ2+0.1769)/(2*a+(a^2+1)cos(θ2+0.1769))
tan(θ2+0.4887)=(1-a^2)*sin(θ2+1.7826)/(2*a+(a^2+1)cos(θ2+1.7826)) 展开
tan(θ1)=(1-a^2)*sin(θ2)/((1+a^2)*cos(θ2)-2*a)
tan(θ2-0.4887)=(1-a^2)*sin(θ2+0.1769)/(2*a+(a^2+1)cos(θ2+0.1769))
tan(θ2+0.4887)=(1-a^2)*sin(θ2+1.7826)/(2*a+(a^2+1)cos(θ2+1.7826)) 展开
1个回答
展开全部
ep1 = 'tan(st1)=(1-a^2)*sin(st2)/((1+a^2)*cos(st2)-2*a)';
ep2 = 'tan(st2-0.4887)=(1-a^2)*sin(st2+0.1769)/(2*a+(a^2+1)*cos(st2+0.1769))';
ep3 = 'tan(st2+0.4887)=(1-a^2)*sin(st2+1.7826)/(2*a+(a^2+1)*cos(st2+1.7826))';
[st1,st2,a] = solve(ep1,ep2,ep3,'st1,st2,a')
st1 =
-5.5638249494414984794316316535759
st2 =
.92503331278913952670138969657035
a =
-7.5273830862630055498603431827687
ep2 = 'tan(st2-0.4887)=(1-a^2)*sin(st2+0.1769)/(2*a+(a^2+1)*cos(st2+0.1769))';
ep3 = 'tan(st2+0.4887)=(1-a^2)*sin(st2+1.7826)/(2*a+(a^2+1)*cos(st2+1.7826))';
[st1,st2,a] = solve(ep1,ep2,ep3,'st1,st2,a')
st1 =
-5.5638249494414984794316316535759
st2 =
.92503331278913952670138969657035
a =
-7.5273830862630055498603431827687
更多追问追答
追问
谢谢!请问[st1,st2,a]里三个变量的位置改变,解出来的数值不同,数值对应的变量也发生变化,这是为何,请赐教1
追答
% 我的结果顺序错了,多输出是按字母排序输出的;
% 为了避免混乱,建议用下面的方式
>> ep1 = 'tan(st1)=(1-a^2)*sin(st2)/((1+a^2)*cos(st2)-2*a)';
ep2 = 'tan(st2-0.4887)=(1-a^2)*sin(st2+0.1769)/(2*a+(a^2+1)*cos(st2+0.1769))';
ep3 = 'tan(st2+0.4887)=(1-a^2)*sin(st2+1.7826)/(2*a+(a^2+1)*cos(st2+1.7826))';
rt = solve(ep1,ep2,ep3)
rt =
a: [1x1 sym]
st1: [1x1 sym]
st2: [1x1 sym]
>> rt.a
ans =
-5.5638249494414984794316316535759
>> rt.st1
ans =
.92503331278913952670138969657035
>> rt.st2
ans =
-7.5273830862630055498603431827687
东莞大凡
2024-11-14 广告
2024-11-14 广告
标定板认准大凡光学科技,专业生产研发厂家,专业从事光学影像测量仪,光学投影测量仪.光学三维测量仪,光学二维测量仪,光学二维测量仪,光学三维测量仪,光学二维测量仪.的研发生产销售。东莞市大凡光学科技有限公司创立于 2018 年,公司总部坐落于...
点击进入详情页
本回答由东莞大凡提供
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询
广告 您可能关注的内容 |