作者lalaman (专业喝牛奶)
看板MATLAB
标题Re: [问题] 解非线性联立方程式
时间Tue Mar 20 22:05:02 2007
※ 引述《stanleyan (stanleyan)》之铭言:
: 方程式如下:
: 0.9558 = 100*exp(-0.273*A2)-10*exp(-0.273*A4)*cos(0.273*A5 + 0.5) ==>(式1)
: 1.0758 = 100*exp(-0.364*A2)-10*exp(-0.364*A4)*cos(0.364*A5 + 0.5) ==>(式2)
: 0.7302 = 100*exp(-0.621*A2)-10*exp(-0.621*A4)*cos(0.621*A5 + 0.5) ==>(式3)
: 要求未知数:A2、A4、A5
: 想了很久不知道要如何解决,有试过syms方法…
: 请各位大大帮忙小弟,谢谢!!
用y=solve('0.9558 = 100*exp(-0.273*A2)-10*exp(-0.273*A4)*cos(0.273*A5 + 0.5)',
'1.0758 = 100*exp(-0.364*A2)-10*exp(-0.364*A4)*cos(0.364*A5 + 0.5)',
'0.7302 = 100*exp(-0.621*A2)-10*exp(-0.621*A4)*cos(0.621*A5 + 0.5)' );
接着打
>>y.A2
ans = 11.432355352771047419827455171833
>>y.A4
ans = 3.1104729053042046360438483648711
>> y.A5
ans = 46.508563511746933221004153407803
答案我并没有验证过,如有错误请见谅
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 140.111.81.41
1F:推 stanleyan:答案是对的,谢谢lalaman的帮忙!! 03/21 15:02