フィルターのクリア

Newton method - example for setup

1 回表示 (過去 30 日間)
Dorothy  Carter
Dorothy Carter 2018 年 3 月 4 日
編集済み: Walter Roberson 2018 年 3 月 4 日
I need help setting up this question. I am not sure how to determine the incrementation for linear equations solving nonlinear equations. This is the question:
Construct a system of 4 nonlinear equations using the combination of sin(xi), cos(xi), xi^2, xi^3, exp(xi) for i=1,2,3,4.
It should look like this in equation form:
f1(x)=sin(x1)+2*x2^2-x3*x4^2+x4=0
Then I have to solve it with Newton method.It requires me to solve the system of linar equations for each increment by writing a subroutine to solve them using LU decomposition with privoting plus forward and backward scheme. It calls the subroutine of the linear systems to move forward.
It gives a hint of setting Nmax=20 to avoid getting a deadloop and suggests using 4-6 iterations starting with a system of two, them 3 and finally 4.

回答 (0 件)

カテゴリ

Help Center および File ExchangeSymbolic Math Toolbox についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by