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

  • Thread starter Thread starter xiaobai5883
  • Start date Start date
  • Tags Tags
    Initial Value
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??
 
Thread 'Use greedy vertex coloring algorithm to prove the upper bound of χ'
Hi! I am struggling with the exercise I mentioned under "Homework statement". The exercise is about a specific "greedy vertex coloring algorithm". One definition (which matches what my book uses) can be found here: https://people.cs.uchicago.edu/~laci/HANDOUTS/greedycoloring.pdf Here is also a screenshot of the relevant parts of the linked PDF, i.e. the def. of the algorithm: Sadly I don't have much to show as far as a solution attempt goes, as I am stuck on how to proceed. I thought...
Back
Top