Respective Initial Value Solutions for Nonlinear Equations Using Newton's Method

  • Thread starter Thread starter xiaobai5883
  • Start date Start date
  • Tags Tags
    Initial Value
Click For Summary
SUMMARY

This discussion centers on solving nonlinear equations using Newton's Method in MATLAB. The user presents three equations with initial values and compares their manually calculated roots to those obtained from MATLAB. The discrepancies noted are: for cos(x) = (e^x) - 1, the user calculated 0.6931 while MATLAB returned 0.6013; for ln(x) = x^2 - 1, both the user and MATLAB agreed on 1; and for x^2 = 2x + 2, the user found 2.7321, but MATLAB reported an error. The user seeks clarification on whether using Newton's Method affects the results.

PREREQUISITES
  • Understanding of Newton's Method for root-finding
  • Familiarity with MATLAB software for numerical computations
  • Basic knowledge of solving nonlinear equations
  • Experience with iterative methods in numerical analysis
NEXT STEPS
  • Investigate MATLAB's implementation of Newton's Method for potential discrepancies
  • Learn about error handling in MATLAB when solving equations
  • Explore the Secant Method as an alternative to Newton's Method
  • Review the convergence criteria for Newton's Method
USEFUL FOR

Students and educators in mathematics or engineering, particularly those learning numerical methods and using MATLAB for solving nonlinear equations.

xiaobai5883
Messages
22
Reaction score
0

Homework Statement


Find the zero for the following equation with the respective initial value...
a)cos(x)=(e^x)-1,x0=0
b)ln(x)=x^2-1,x0=1
c)x^2=2x+2,x0=2.6
the answers i get are...
a)0.6931
b)1
c)2.7321
but here comes my question...
i'm attempting a class teach us to use the software matlab...
but 2 out of 3 answers that i get from using the software is different from what i count myself...
the software MATLAB give me the answers are
a)0.6013
b)1
c)error
can someone help me??
please and thank you...

Homework Equations





The Attempt at a Solution

 
Physics news on Phys.org
I assume you are using some kind of iterative method to numerically solve these equations- but what method? Secant method? Newton's method?
 
HallsofIvy said:
I assume you are using some kind of iterative method to numerically solve these equations- but what method? Secant method? Newton's method?

i'm using Newton's method...
is that effect the answers??
 

Similar threads

Replies
5
Views
2K
  • · Replies 5 ·
Replies
5
Views
1K
  • · Replies 1 ·
Replies
1
Views
1K
  • · Replies 15 ·
Replies
15
Views
2K
  • · Replies 6 ·
Replies
6
Views
2K
Replies
4
Views
2K
Replies
5
Views
979
  • · Replies 1 ·
Replies
1
Views
1K
  • · Replies 2 ·
Replies
2
Views
1K
  • · Replies 2 ·
Replies
2
Views
1K