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
1. As my parents are both cost accountants, I thought that accounting is my blood. However, everything is not that easy as I often failed to match my trial balance and was finding it problematic to write my cash-flow statements. I knew I need assistance apart from the help that I get from my accounting professor. So when I saw TheReliableTutor.com, I was happy as they helped me solve my accounting homework. I even got good grades now.
Material provided by the online mechanical engineering tutor at HwA was absolutely fantastic and just the thing I needed to write my mechanical engineering term paper on Fluid Mechanics. The online mechanical engineering tutor assigned to me helped me understand the crucial details of the topic and that along with the reference material and notes provided helped me to write my term paper and get an A in it!
I had difficulty in understanding the quantitative chemistry assignment. The assignment expert at HwA helped me understand the topic in a lucid manner and also guided me to write the quantitative chemistry assignment in a way that fetched me an A!
Higher order simultaneous equation where I needed to find out values for 5 or 6 variables forming appropriate equations from a given problem, was really my weak area. However, when I came across HwA they helped me and also assisted me to understand how exactly from a problem statement, the equations can be formed and how they can be evaluated.
"I knew my research proposal needs to be fantastic to create the first impression. I am a regular client of HelpWithAssingment.com and things worked out fine. Not only did they help me identify the topic but also at the same time they wrote a fantastic research proposal which had impressed my professor very much
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.