Get in touch with us
Send us an e-mail
Question
Newton’s method is a simple algorithm for approximating the roots of an equation. This algorithm works by taking the derivative (slope) of a function at a point along that function, finding where that slope intersects the x-axis, and then repeating for this new point. Repeating this process gets us closer to the root of the actual function. We can describe Newton’s method in general form by the equation:
Write a MATLAB function called newtons Method that accepts two inputs and returns one output. The inputs should be a vector representation of a polynomial and an initial guess for the root. The output should be the root returned by Newton’s Method. Your function should find the root within at least 6 decimal places of accuracy. Your function should also gracefully handle when f’(x) is zero (don’t divide by zero) and the case when there isn’t a root (don’t loop forever).
Check your answer with the polynomial y=3x2+2x-6 to generate output. Your script should perform this calculation in both of the following ways. (1) Call your newtons Method function twice with these two guesses: 1 and -1. (2) Use the roots() function on your polynomial. Print all solutions to 6 decimal places.
Summary
This question belongs to MATLAB software and discusses about application of MATLAB in mathematics to find area of a tea spill using numerical integration.
Answer is in MATLAB format
Download Full Solution
I used to have nightmares about my C++ and Java programming assignments. I never could ever wrap my head around the object oriented programming languages till I came across HwA. Their programming tutors by far the best in the industry and they helped me get excellent scores.
Writing dissertation was a big challenge for me, especially when the subject was pre-specified by my professor. However, when I came across HwA, I found that there are experts here who work exclusively on Canadian dissertation writing projects and got good results.
I was really stuck with my human structure assignments when I came across TheReliableTutor.com. To be honest, I was skeptical. Then I got an A in my cardiovascular systems assignment. That was the first work they did for me. From there it only got better. I am now thinking of doing my MSN and will definitely seek their help for that."
I actually had a research topic in mind but was unsure of how to frame the research question. The research question assignment expert of HwA has helped me to narrow down the topic to one single question which became the foundation of my entire research. They also helped me with the actual research paper where I got excellent grades.
Thank you guys for your great assistance. Loved the way you dealt with the assignment. Very satisfied with the work and will use your service again.
Comments
this is a very good website
I have 50 questions for the same test your page is showing only 28
hi can you please help or guide me to answer my assignments. thanks
hi can anyone help or guide me to my assignments. thanks
This solution is perfect ...thanks
Hello Allison,I love the 2nd image that you did! I also, had never heard of SumoPaint, is something that I will have to exolpre a bit! I understand completely the 52 (or so) youtube videos that you probably watched. Sometimes they have what you want, sometimes they don't! However, it is always satisfying when you are able to produce something that you have taught yourself. Great job!Debra 0 likes
Perfect bank of solution.
great !
thanks for the quick response. the solution looks good. :)
thnx for the answer. it was perfect. just the way i wanted it.
works fine.