{"id":2267,"date":"2016-03-08T12:23:51","date_gmt":"2016-03-08T12:23:51","guid":{"rendered":"https:\/\/assignment.essayshark.com\/blog\/?p=2267"},"modified":"2023-01-04T09:48:05","modified_gmt":"2023-01-04T09:48:05","slug":"sample-on-math-newtons-method","status":"publish","type":"post","link":"https:\/\/assignmentshark.com\/blog\/sample-on-math-newtons-method\/","title":{"rendered":"Sample on Math: Newton\u2019s Method"},"content":{"rendered":"<blockquote>\n<p style=\"text-align: center;\"><strong>Newton\u2019s Method for Solving Nonlinear Equations<\/strong><\/p>\n<p><a href=\"https:\/\/assignmentshark.com\/blog\/wp-content\/uploads\/2016\/03\/sample-math.jpg\" rel=\"attachment wp-att-2289\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-2289\" src=\"https:\/\/assignmentshark.com\/blog\/wp-content\/uploads\/2016\/03\/sample-math.jpg\" alt=\"sample-math\" width=\"570\" height=\"380\" srcset=\"https:\/\/assignmentshark.com\/blog\/wp-content\/uploads\/2016\/03\/sample-math.jpg 960w, https:\/\/assignmentshark.com\/blog\/wp-content\/uploads\/2016\/03\/sample-math-300x200.jpg 300w, https:\/\/assignmentshark.com\/blog\/wp-content\/uploads\/2016\/03\/sample-math-768x512.jpg 768w\" sizes=\"auto, (max-width: 570px) 100vw, 570px\" \/><\/a><\/p>\n<p><em><strong>Question #1<\/strong><\/em><\/p>\n<p>Suppose a ball is dropped from a height of 2 meters onto a hard surface and the coefficient of restitution of the collision is .9. Write a script program to calculate the total distance the ball has traveled when it hits the surface for the n-th time.<!--more--><\/p>\n<p><em><strong>Solution<\/strong><\/em><\/p>\n<p>Step 1. The coefficient of restitution for the case where the friction forces are negligible can be found as follows:<\/p>\n<p>Cr=(h\/H)1\/2, where h is the bounce height and H is the drop height.<\/p>\n<p>Since we know the initial height and the coefficient of restitution, we can obtain the bounce height, as follows:<br \/>\nh= Cr2*H.<\/p>\n<p>Therefore, the total distance the ball has traveled when it hits the surface for the n-th time could be expressed with an equation:<\/p>\n<p>h(n)=h(n-1)+2*h(n-1)* Cr2<\/p>\n<p>Step 2. In a new document in MatLab, enter a script as shown in the figure 1 below:<\/p>\n<p><a href=\"https:\/\/assignmentshark.com\/blog\/wp-content\/uploads\/2016\/02\/figure-1.png\" rel=\"attachment wp-att-2269\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-2269 size-full\" src=\"https:\/\/assignmentshark.com\/blog\/wp-content\/uploads\/2016\/02\/figure-1.png\" alt=\"figure 1\" width=\"176\" height=\"157\" \/><\/a><\/p>\n<p style=\"text-align: center;\">Function 1<\/p>\n<p>Step 3. In the command window, enter a number of bounces (n): &gt;&gt;n=10, for instance, and after that enter the name of the script. The result would be the total distance after each bounce.<\/p>\n<p><em><strong>Question #2<\/strong><\/em><\/p>\n<p>Modify the program from Question 1 to compute the total distance traveled by the ball while its bounces are at least 1 centimeter high. Use a while loop.<\/p>\n<p><em><strong>Solution<\/strong><\/em><\/p>\n<p>In order to solve Question #2, use the while loop, as shown in figure 1 below:<\/p>\n<p><a href=\"https:\/\/assignmentshark.com\/blog\/wp-content\/uploads\/2016\/02\/figure-1-1.png\" rel=\"attachment wp-att-2271\"><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-2271 aligncenter\" src=\"https:\/\/assignmentshark.com\/blog\/wp-content\/uploads\/2016\/02\/figure-1-1-300x131.png\" alt=\"figure 1\" width=\"300\" height=\"131\" srcset=\"https:\/\/assignmentshark.com\/blog\/wp-content\/uploads\/2016\/02\/figure-1-1-300x131.png 300w, https:\/\/assignmentshark.com\/blog\/wp-content\/uploads\/2016\/02\/figure-1-1.png 351w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p style=\"text-align: center;\">Figure 1<\/p>\n<p>The result, obtained after running the script, is shown below:<\/p>\n<p><a href=\"https:\/\/assignmentshark.com\/blog\/wp-content\/uploads\/2016\/02\/script.png\" rel=\"attachment wp-att-2273\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-2273 aligncenter\" src=\"https:\/\/assignmentshark.com\/blog\/wp-content\/uploads\/2016\/02\/script.png\" alt=\"script\" width=\"132\" height=\"75\" \/><\/a><\/p>\n<p><em><strong>Question #3<\/strong><\/em><\/p>\n<p>Perform the Bisection Method to solve a nonlinear equation until the error is bounded by a given tolerance. The given function is: f(x)=2&#215;3+3x-1 with starting interval [0,1] and a tolerance of 10-8. How many steps does the program use to achieve this tolerance? How big is the final residual f(x)?<\/p>\n<p><em><strong>Solution<\/strong><\/em><\/p>\n<p>Step 1. A Bisection Method is a method which is used to solve non-linear equations where the initial bounds of argument are available (in or case this bound is [0,1] or a=0 and b=1). There are four input values in the program: f \u2013 inline function (f(x) in our case); a \u2013 left value of the initial bound; b \u2013 right bound of the initial area and tol \u2013 tolerance value (10-8 for this problem).<\/p>\n<p>Step 2. A function body is shown in figure 1 below:<\/p>\n<p><a href=\"https:\/\/assignmentshark.com\/blog\/wp-content\/uploads\/2016\/02\/figure-2.png\" rel=\"attachment wp-att-2275\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-2275 size-medium\" src=\"https:\/\/assignmentshark.com\/blog\/wp-content\/uploads\/2016\/02\/figure-2-300x262.png\" alt=\"samlpe-math-figure 2\" width=\"300\" height=\"262\" srcset=\"https:\/\/assignmentshark.com\/blog\/wp-content\/uploads\/2016\/02\/figure-2-300x262.png 300w, https:\/\/assignmentshark.com\/blog\/wp-content\/uploads\/2016\/02\/figure-2.png 410w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p style=\"text-align: center;\">Figure 1<\/p>\n<p>After running this function, the next result was obtained:<\/p>\n<p><a href=\"https:\/\/assignmentshark.com\/blog\/wp-content\/uploads\/2016\/02\/figure_2_sample-math.png\" rel=\"attachment wp-att-2277\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-2277 size-full\" src=\"https:\/\/assignmentshark.com\/blog\/wp-content\/uploads\/2016\/02\/figure_2_sample-math.png\" alt=\"figure_2_sample-math\" width=\"213\" height=\"350\" srcset=\"https:\/\/assignmentshark.com\/blog\/wp-content\/uploads\/2016\/02\/figure_2_sample-math.png 213w, https:\/\/assignmentshark.com\/blog\/wp-content\/uploads\/2016\/02\/figure_2_sample-math-183x300.png 183w\" sizes=\"auto, (max-width: 213px) 100vw, 213px\" \/><\/a><\/p>\n<p style=\"text-align: center;\">Figure 2<\/p>\n<p>Discussion: from the figure 2 above, the total amount of steps is i=22, the answer is 0.3129, and the final residual is f(x)=0.000000005548982.<\/p><\/blockquote>\n<p>The presented sample on math is a good example how to put your knowledge to use. Now, you can understand how to perform similar assignments yourself and what formulas to apply. If you feel you won&#8217;t be able to manage your <a href=\"https:\/\/assignmentshark.com\/math-help.html\" target=\"_blank\" rel=\"noopener noreferrer\">math homework<\/a> yourself, \u00a0our experts can help you no matter how tough your deadline is. Hurry up to get professional <a href=\"https:\/\/assignmentshark.com\/math-assignment-help.html\" target=\"_blank\" rel=\"noopener\">math assignment online<\/a> assistance from AssignmentShark.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Newton\u2019s Method for Solving Nonlinear Equations Question #1 Suppose a ball is dropped from a height of 2 meters onto a hard surface and the coefficient of restitution of the collision is .9. Write a script program to calculate the total distance the ball has traveled when it hits the surface for the n-th time.<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[55,35],"tags":[],"class_list":["post-2267","post","type-post","status-publish","format-standard","hentry","category-math","category-samples"],"_links":{"self":[{"href":"https:\/\/assignmentshark.com\/blog\/wp-json\/wp\/v2\/posts\/2267","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/assignmentshark.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/assignmentshark.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/assignmentshark.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/assignmentshark.com\/blog\/wp-json\/wp\/v2\/comments?post=2267"}],"version-history":[{"count":16,"href":"https:\/\/assignmentshark.com\/blog\/wp-json\/wp\/v2\/posts\/2267\/revisions"}],"predecessor-version":[{"id":13229,"href":"https:\/\/assignmentshark.com\/blog\/wp-json\/wp\/v2\/posts\/2267\/revisions\/13229"}],"wp:attachment":[{"href":"https:\/\/assignmentshark.com\/blog\/wp-json\/wp\/v2\/media?parent=2267"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/assignmentshark.com\/blog\/wp-json\/wp\/v2\/categories?post=2267"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/assignmentshark.com\/blog\/wp-json\/wp\/v2\/tags?post=2267"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}