MATLAB爱好者论坛-LabFans.com

MATLAB爱好者论坛-LabFans.com (https://www.labfans.com/bbs/index.php)
-   MathCAD论坛 (https://www.labfans.com/bbs/forumdisplay.php?f=36)
-   -   [问题] 求教:迭代法求解非线性方程组遇到的问题 (https://www.labfans.com/bbs/showthread.php?t=18796)

swj 2013-04-19 11:17

求教:迭代法求解非线性方程组遇到的问题
 
题目:
x^2+y^2=4
e^x+y=1

我的程序
f(e)∶= x0←1
x1←1
x2←1
cha←100
while cha>e
x0←x2
x1←-√(4-x2^2)
x2←1-e^x1
cha←|x0-x2|
(x1,x2)

mathcad报错,有过程量溢出,但不知道问题在哪里。

zpz11111 2013-04-21 08:27

回复: 求教:迭代法求解非线性方程组遇到的问题
 
你给出的程序代码,怎么不像是mathcad页面程序,更不像编程板程序。能否上传你的页面文件(xmcd 格式的)。


所有时间均为北京时间。现在的时间是 20:07

Powered by vBulletin
版权所有 ©2000 - 2025,Jelsoft Enterprises Ltd.