| 2 | 1/1 | 返回列表 |
| 查看: 537 | 回復(fù): 1 | ||
763443895銀蟲 (初入文壇)
|
[求助]
變步長的非線性方程組求解
|
|
function y=t1(x) %%%%%%%中間變量%%%%%%%%%%%%%%%%%%% M=[cosd(x(1)-x(2))+cosd(x(1))]; N=[sind(x(1)-x(2))+sind(x(1))]; k=x(1)/sind(34.32); q=[cosd(x(4)+x(5)-63.77)+cosd(x(4)+24.81)]; w=[sind(x(4)+x(5)-63.77)+sind(x(4)+24.81)]; e=x(4)/sind(48.743); g=x(1)-x(2)+66.793; h=x(4)+x(5)-63.77; %%%%%%% 6個非線性方程組 %%%%%%%%%%% y(1)=M+cosd(x(6))*[-sind(e)*q+cosd(e)*w]-sind(x(6))*[cosd(e)*q+sind(e)*w]; y(2)=cosd(x(3))*[sind(k)*M-cosd(k)*N]-sind(x(3))*[-cosd(k)*M-sind(k)*N]-q; y(3)=sind(x(3))*[sind(k)*M-cosd(k)*N]+cosd(x(3))*[-cosd(k)*M-sind(k)*N]-sind(x(6))*[-sind(e)*q+cosd(e)*w]-cosd(x(6))*[cosd(e)*q+sind(e)*w]; y(4)=cosd(g)+cosd(x(6))*[sind(h)*sind(e)+sind(h)*cosd(e)]-sind(x(6))*[sind(e)*sind(h)+cosd(e)*cosd(h)]; y(5)=cosd(x(3))*(cosd(k)*sind(g)-sind(k)*cosd(g))+sind(x(3))*(sind(g)*sind(k)+cosd(g)*cosd(k))-cosd(h); y(6)=cosd(x(3))*(sind(k)*sind(g)+cosd(k)*cosd(g))-sind(x(3))*(sind(g)*cosd(k)-sind(g)*cosd(k))-sind(x(6))*(sind(e)*cosd(h)+sind(h)*cosd(e)) -cosd(x(6))*(sind(h)*sind(e)+cosd(e)*cosd(h)); 6個未知數(shù),假設(shè)已知6個未知數(shù)的一組解為[3,4,5,6,3,4], 想讓x(3)按照步長為1求解其他5個參數(shù)。! 主程序該怎么寫,新手,求大神幫忙, 已經(jīng)知道用fsolve進(jìn)行求解,可是結(jié)果不是想要的 結(jié)果格式應(yīng)該是: x(1) 3 x(2) 4 x(3) 5 4 3 2 1 x(4) 6 x(5) 3 x(6) 4 |

新蟲 (初入文壇)
| 2 | 1/1 | 返回列表 |
| 最具人氣熱帖推薦 [查看全部] | 作者 | 回/看 | 最后發(fā)表 | |
|---|---|---|---|---|
|
[考研] 材料科學(xué)與工程求調(diào)劑 +9 | 深V宿舍吧 2026-03-29 | 9/450 |
|
|---|---|---|---|---|
|
[考研] 288資源與環(huán)境專碩求調(diào)劑,不限專業(yè),有學(xué)上就行 +11 | lllllos 2026-03-30 | 11/550 |
|
|
[考研] 學(xué)碩274求調(diào)劑 +10 | Li李魚 2026-03-26 | 10/500 |
|
|
[考研] 279求調(diào)劑 +12 | j的立方 2026-03-29 | 12/600 |
|
|
[考研] 285求調(diào)劑 +4 | AZMK 2026-03-30 | 7/350 |
|
|
[考研] 一志愿哈爾濱工業(yè)大學(xué)材料與化工方向336分 +12 | 辰沐5211314 2026-03-26 | 12/600 |
|
|
[考研] 一志愿廈門大學(xué)材料工程專碩354找調(diào)劑。! +5 | 貝唄鋇鋇 2026-03-30 | 5/250 |
|
|
[考研] 291求調(diào)劑 +8 | HanBeiNingZC 2026-03-24 | 8/400 |
|
|
[考研] 291求調(diào)劑 +5 | Y-cap 2026-03-29 | 6/300 |
|
|
[考研] 279求調(diào)劑 +4 | 蝶舞輕繞 2026-03-29 | 4/200 |
|
|
[考研]
|
y7czhao 2026-03-26 | 10/500 |
|
|
[考研] 347求調(diào)劑 +3 | 山頂見α 2026-03-25 | 3/150 |
|
|
[考研] 304求調(diào)劑 +6 | 曼殊2266 2026-03-27 | 6/300 |
|
|
[考研] 286求調(diào)劑 +12 | PolarBear11 2026-03-26 | 12/600 |
|
|
[考研] 331環(huán)境科學(xué)與工程求調(diào)劑 +3 | 熠然好運(yùn)氣 2026-03-27 | 3/150 |
|
|
[考研] 352分 化工與材料 +5 | 海納百川Ly 2026-03-27 | 5/250 |
|
|
[考研] 中國科學(xué)院深圳先進(jìn)技術(shù)研究院-光纖傳感課題組招生-中國科學(xué)院大學(xué)、深圳理工大學(xué)聯(lián)培 +5 | YangTyu1 2026-03-26 | 5/250 |
|
|
[考研]
|
平樂樂樂 2026-03-26 | 4/200 |
|
|
[考研] 各位老師您好:本人初試372分 +5 | jj涌77 2026-03-25 | 6/300 |
|
|
[考研] 340求調(diào)劑 +5 | 話梅糖111 2026-03-24 | 5/250 |
|