Info

This question is locked. 編集または回答するには再度開いてください。

Can you help me to solve equation

52 ビュー (過去 30 日間)
marwa
marwa 2024 年 10 月 29 日 16:36
Locked: John D'Errico 2024 年 10 月 30 日 12:28
based on the Newton-Raphson method and an initial guess x0=(1,1,1)
x2y2 − z2 = 0.3
x cos y − sin 2z = -0.3
x + eyz = −1.1

回答 (1 件)

Shivam Gothi
Shivam Gothi 2024 年 10 月 30 日 6:19
Hello @marwa,
As per my understanding, you are trying to find the solution of set of non-linear equations using Newton-Raphson method.
As the third equation given by you is not clear, I am assuming that the equations you are trying to solve are:
x^2 * y^2 - z^2=0.3;
x cos y − sin 2z = -0.3;
x + y*z = -1.1;
I have attached a code snippet which solves the system of non linear equations containing three variables using Newton Raphson method.
I have used it for the above stated set of equation, and attached the screen-shot of its implementation:
This uses the Function “Newton_Raphson from below attached file exchange:
The function returns the solution of three equations in three variables using the Newton-Raphson method. The inputs are symbolic functions, initial guesses and number of iterations.
Refer to the instructions given in the above mentioned file exchange to get a clear understanding of its usage.
I hope it helps !
  3 件のコメント
Shivam Gothi
Shivam Gothi 2024 年 10 月 30 日 8:44
hello @marwa,
thankyou for clearifying. In that case, you will get :
John D'Errico
John D'Errico 2024 年 10 月 30 日 12:27
Please do not do homework assignments for students who make no effort. This teaches the student nothing more than that there is someone out there willing to do their homework.
This does not help the forum, since it convinces the student to continue posting their assignments. It convinces other students to do the same, which actively hurts the forum. And it forces me to watch more diligently to close similar future questions from this student.

This question is locked.

カテゴリ

Help Center および File ExchangeNewton-Raphson Method についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by