声振论坛

 找回密码
 我要加入

QQ登录

只需一步,快速开始

查看: 1272|回复: 6

[计算数学] 四个参数的方程该如何求解?

[复制链接]
发表于 2008-3-20 12:36 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?我要加入

x
在MATLAB下该怎么编程。用什么函数。麻烦给个例子啊。。
多谢大家!

求解方程

求解方程
回复
分享到:

使用道具 举报

发表于 2008-3-20 16:08 | 显示全部楼层
四个未知数,需要四个方程吧?
 楼主| 发表于 2008-3-20 18:14 | 显示全部楼层
k=1、2、3、4时各有一个方程的。。!!!
发表于 2008-3-20 19:57 | 显示全部楼层
非线性代数方程组,用NEWTON-RAPSON迭代方法
 楼主| 发表于 2008-3-20 21:15 | 显示全部楼层
能不能给个求解思路啊?
主要是系数和变量不能分离开。。不知道怎么迭代!
 楼主| 发表于 2008-3-21 10:51 | 显示全部楼层
麻烦哪位大侠给个非线性代数方程组的例子啊。。。!!?
发表于 2008-3-21 10:54 | 显示全部楼层

回复 6楼 的帖子

在matlab的help中找fsolve,你会发现有一个例子在:
Example 1. This example finds a zero of the system of two equations and two unknowns  Thus we want to solve the following system for x  starting at x0 = [-5 -5]. First, write an M-file that computes F, the values of the equations at x.

function F = myfun(x)
F = [2*x(1) - x(2) - exp(-x(1));
      -x(1) + 2*x(2) - exp(-x(2))];

Next, call an optimization routine.

x0 = [-5; -5];           % Make a starting guess at the solution
options=optimset('Display','iter');   % Option to display output
[x,fval] = fsolve(@myfun,x0,options)  % Call optimizer
您需要登录后才可以回帖 登录 | 我要加入

本版积分规则

QQ|小黑屋|Archiver|手机版|联系我们|声振论坛

GMT+8, 2024-5-19 09:59 , Processed in 0.057190 second(s), 21 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表