{"id":55,"date":"2018-07-11T10:55:21","date_gmt":"2018-07-11T10:55:21","guid":{"rendered":"http:\/\/itp15.epgpbooks.inflibnet.ac.in\/?post_type=chapter&#038;p=55"},"modified":"2019-05-15T08:39:02","modified_gmt":"2019-05-15T08:39:02","slug":"sources-and-types-of-errors","status":"publish","type":"chapter","link":"https:\/\/ebooks.inflibnet.ac.in\/itp15\/chapter\/sources-and-types-of-errors\/","title":{"rendered":"Sources and Types of Errors"},"content":{"raw":"<div><span style=\"float: right;\"><a href=\"https:\/\/youtu.be\/smyeAUdig30\" target=\"_blank\" rel=\"noopener\"><img src=\"http:\/\/epgpbooks.inflibnet.ac.in\/wp-content\/uploads\/2018\/11\/download.png\" alt=\"epgp books\" width=\"75px\" height=\"75px;\" \/><\/a>\r\n<\/span><\/div>\r\n<div>\r\n\r\n&nbsp;\r\n\r\n<strong>1.\u00a0 Introduction\u00a0<\/strong>\r\n\r\n&nbsp;\r\n<p style=\"text-align: justify;\">In previous module, we learned about different characteristics of numerical methods. One important characteristic of numerical methods is that solutions are supposed to be approximate in nature. We also learned about different measures of error like True Error, approximate absolute error, relative error, percentage error etc. In this module our main focus is on different sources of errors and types of errors which occur during numerical computations.<\/p>\r\n\r\n<\/div>\r\n<div>\r\n\r\n&nbsp;\r\n\r\n<strong>2.\u00a0 Significant Digit\u00a0<\/strong>\r\n\r\n&nbsp;\r\n<p style=\"text-align: justify;\">Many times, especially in determination of scientific constants, for example, Elasticity constants, gravitational constants, Heat constants, approximate solutions obtained are needed to be correct to certain number of significant digits. Before we understand, why so, let us understand the concept of significant digit. When is a digit said to be significant?<\/p>\r\n&nbsp;\r\n<p style=\"text-align: justify;\">(i) Every nonzero digit is significant. If a number does not contain any zero, all digits of it are significant. Only when a number contains zeroes, number of significant digits may be different from number of decimal digits in a number. Thus, 9.5763 has 5 significant digits, 492 has 3 significant digits.<\/p>\r\n&nbsp;\r\n<p style=\"text-align: justify;\">(ii) Zero may be significant or may not be significant. Zeros between non-zero digits are always significant. So, 2047 has 4 significant digits , 50.032 has 5 significant digits<\/p>\r\n&nbsp;\r\n<p style=\"text-align: justify;\">(iii) Leading zeros, that is, zeros before non-zero digits are <strong>not <\/strong>significant; for example, 0.0123 has 3 significant digits namely 1, 2 and 3. Similarly, 0.0000000123 also has 3 significant digits only.<\/p>\r\n&nbsp;\r\n<p style=\"text-align: justify;\"><span style=\"text-align: initial; font-size: 1em;\">(iv) Trailing zeros, that is, zeros behind non-zero digits are <\/span><strong style=\"text-align: initial; font-size: 1em;\">sometimes <\/strong><span style=\"text-align: initial; font-size: 1em;\">significant; zeros after decimal point are significant. \u00a03.000 has 4 significant digits but 3000 has only 1 significant digit as trailing zeroes are not occurring after decimal point.<\/span><\/p>\r\n&nbsp;\r\n<p style=\"text-align: justify;\"><strong style=\"text-align: initial; font-size: 1em;\">Illustration 1:<\/strong><\/p>\r\n&nbsp;\r\n<p style=\"text-align: justify;\"><span style=\"text-align: initial; font-size: 1em;\">\u2022\u00a0\u00a0\u00a0\u00a0 6.4320 has 5 significant digits\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 (case (iv))<\/span><\/p>\r\n<p style=\"text-align: justify;\"><span style=\"text-align: initial; font-size: 1em;\">\u2022\u00a0\u00a0\u00a0\u00a0 0.06432 has 4 significant digits\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 (case (iii))<\/span><\/p>\r\n<p style=\"text-align: justify;\"><span style=\"text-align: initial; font-size: 1em;\">\u2022\u00a0\u00a0\u00a0\u00a0 64 has 2 significant digits\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 (case (i))<\/span><\/p>\r\n<p style=\"text-align: justify;\"><span style=\"text-align: initial; font-size: 1em;\">\u2022\u00a0\u00a0\u00a0\u00a0 64.0 has 3 significant digits\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 (case (iv))<\/span><\/p>\r\n<p style=\"text-align: justify;\"><span style=\"text-align: initial; font-size: 1em;\">\u2022\u00a0\u00a0\u00a0\u00a0 6.432*\u00a0\u00a0\u00a0\u00a0\u00a0 \u00a0has 4 significant digits\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 (case (iv))<\/span><\/p>\r\n<p style=\"text-align: justify;\"><span style=\"text-align: initial; font-size: 1em;\">\u2022\u00a0\u00a0\u00a0\u00a0 6.43200 has 6 significant digits\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 (case (iv))<\/span><\/p>\r\n<p style=\"text-align: justify;\"><span style=\"text-align: initial; font-size: 1em;\">\u2022\u00a0\u00a0\u00a0\u00a0 2000 has 1 significant digits\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 (case (iv))<\/span><\/p>\r\n\r\n<\/div>\r\n<div>\r\n\r\n&nbsp;\r\n<p style=\"text-align: justify;\">Having understood, concept of significant digit, let us have a look at the situation, where answer correct to certain number of significant digits , rather than certain number of decimal digits becomes a must. When an answer falls under case (iii), answer being numerically less than 1, it would have leading zeroes. When such a constant is to be determined, one is required to give first few non-zero numbers. That time, answer correct to fixed number of decimal places may yield the answer as 0. Let us suppose the answer to be determined has value 0.0000000011457648. Answer correct to six decimal places is 0.000000 whereas answer correct to six significant digits is 0.00000000114576. On the other hand, if value 1.00636; then answer correct to three decimal places is 1.006 and answer correct to three significant places is also 1.006. If non-significant zeros are there in a number then two answers differ.<\/p>\r\n&nbsp;\r\n\r\n<strong>3. Sources and Types of Errors\u00a0<\/strong>\r\n\r\n&nbsp;\r\n<p style=\"text-align: justify;\">When a mathematically formulated problem comes to numerical analyst, it is likely that it contains many different errors. They may have occurred due to Mathematical Modeling of the problem, limitations of measurement tools and methods or\/and errors committed by humans unintentionally or due to their non-commitment. As such nothing can be done to reduce or remove them. These errors being inherited by the numerical analyst are called <strong>Inherent Errors<\/strong>. Two types of errors occur in implementation of numerical methods on computer, classified as <strong>Truncation Error <\/strong>and <strong>Round off Error<\/strong>.<\/p>\r\n&nbsp;\r\n\r\n<img class=\" wp-image-58 aligncenter\" src=\"http:\/\/itp15.epgpbooks.inflibnet.ac.in\/wp-content\/uploads\/sites\/26\/2018\/07\/Sources-and-Types-of-Errors.png\" alt=\"\" width=\"741\" height=\"419\" \/>\r\n\r\n<\/div>\r\n<div>\r\n\r\n&nbsp;\r\n\r\n<strong>4.\u00a0 Truncation Error\u00a0<\/strong>\r\n\r\n&nbsp;\r\n<p style=\"text-align: justify;\">Truncation Error is an error in implementation of numerical approximation method occurring due\u00a0 to truncating a process involving infinite number of\u00a0 steps to\u00a0 finite number of steps, like:<\/p>\r\n&nbsp;\r\n\r\n(i) Limiting infinite series to finite number of terms\r\n\r\n(ii) Limiting infinite number of iterations to finite number of iterations (f(x) = 0)\r\n\r\n(iii) Taking finite step size instead of infinitesimal step size (Numerical Differentiation and Numerical Integration)\r\n\r\n&nbsp;\r\n\r\n<strong>a. Limiting infinite series to finite number of terms\u00a0<\/strong>\r\n\r\n<\/div>\r\n<div>\r\n\r\n<img class=\"alignnone wp-image-59\" src=\"http:\/\/itp15.epgpbooks.inflibnet.ac.in\/wp-content\/uploads\/sites\/26\/2018\/07\/Limiting-infinite.png\" alt=\"\" width=\"624\" height=\"233\" \/>\r\n\r\n<\/div>\r\n<span style=\"text-align: initial; font-size: 1em;\"><strong>Illustration 1<\/strong>:\u00a0<\/span>\r\n\r\n&nbsp;\r\n\r\n<span style=\"text-align: initial; font-size: 1em;\">Estimate for different no of terms and calculate relative % approximate error (Exact value of upto 5 decimal places is 1.64872)<\/span>\r\n\r\n<img class=\" wp-image-62 aligncenter\" src=\"http:\/\/itp15.epgpbooks.inflibnet.ac.in\/wp-content\/uploads\/sites\/26\/2018\/07\/tablen.png\" alt=\"\" width=\"722\" height=\"253\" \/>\r\n\r\n<img class=\"wp-image-61 alignnone\" src=\"http:\/\/itp15.epgpbooks.inflibnet.ac.in\/wp-content\/uploads\/sites\/26\/2018\/07\/for.png\" alt=\"\" width=\"464\" height=\"248\" \/>\r\n\r\n<img class=\"wp-image-60 alignnone\" src=\"http:\/\/itp15.epgpbooks.inflibnet.ac.in\/wp-content\/uploads\/sites\/26\/2018\/07\/for1.png\" alt=\"\" width=\"486\" height=\"264\" \/>\r\n\r\nRemainder Term R<sub>n<\/sub> is the Truncation error term.\r\n\r\n&nbsp;\r\n\r\n<strong><span style=\"text-align: initial; font-size: 1em;\">b. Truncation Error in Numerical Integration<\/span><\/strong>\r\n\r\n&nbsp;\r\n\r\n<span style=\"text-align: initial; font-size: 1em;\">We know, numerical integration \u222b\u00a0\u00a0\u00a0\u00a0 \u00a0(\u00a0\u00a0)\u00a0\u00a0\u00a0\u00a0\u00a0 \u00a0gives area under the curve\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 \u00a0(\u00a0\u00a0)\u00a0<\/span><span style=\"text-align: initial; font-size: 1em;\">from <\/span><em style=\"text-align: initial; font-size: 1em;\">x <\/em><span style=\"text-align: initial; font-size: 1em;\">= <\/span><em style=\"text-align: initial; font-size: 1em;\">a <\/em><span style=\"text-align: initial; font-size: 1em;\">to <\/span><em style=\"text-align: initial; font-size: 1em;\">x <\/em><span style=\"text-align: initial; font-size: 1em;\">= <\/span><em style=\"text-align: initial; font-size: 1em;\">b<\/em><span style=\"text-align: initial; font-size: 1em;\">.<\/span>\r\n<div>\r\n\r\n<img class=\"wp-image-63 aligncenter\" src=\"http:\/\/itp15.epgpbooks.inflibnet.ac.in\/wp-content\/uploads\/sites\/26\/2018\/07\/area.png\" alt=\"\" width=\"721\" height=\"359\" \/>\r\n\r\n&nbsp;\r\n\r\n<\/div>\r\n<img class=\"alignnone wp-image-64\" src=\"http:\/\/itp15.epgpbooks.inflibnet.ac.in\/wp-content\/uploads\/sites\/26\/2018\/07\/let-us.png\" alt=\"\" width=\"360\" height=\"168\" \/>\r\n<p style=\"text-align: justify;\"><span style=\"text-align: justify; font-size: 1em;\">rounded to 2 decimal places. Now, Let us\u00a0<\/span><span style=\"font-size: 1em; text-align: initial;\">apply numerical approximation method. For simplicity, ease, convenience and to\u00a0<\/span><span style=\"text-align: initial; font-size: 1em;\">avoid round off errors, let us take rectangles of width 1 from 2 to 4 and sum up\u00a0<\/span><span style=\"font-size: 1em; text-align: initial;\">their areas as an estimate of the integral \u222b\u00a0\u00a0\u00a0\u00a0\u00a0 \u00a0dx.<\/span><\/p>\r\n<img class=\" wp-image-65 aligncenter\" src=\"http:\/\/itp15.epgpbooks.inflibnet.ac.in\/wp-content\/uploads\/sites\/26\/2018\/07\/integ.png\" alt=\"\" width=\"614\" height=\"395\" \/>\r\n\r\n<span style=\"text-align: initial; font-size: 1em;\">This gives us:<\/span>\r\n\r\n<span style=\"text-align: initial; font-size: 1em;\">Estimated value\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 \u00a0= 1*4 + 1* 9 = 13 (Height\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 \u00a0)<\/span>\r\n\r\n<span style=\"text-align: initial; font-size: 1em;\">Truncation Error\u00a0 \u00a0 \u00a0 = 18.67 \u2013 13 = 5.67<\/span>\r\n<div>\r\n\r\n&nbsp;\r\n\r\nLet us ask ourselves this question: What would happen, if we rework the same example with smaller width? (Smaller step size and increase the number\u00a0 of steps). So, let number of sub intervals now in [2, 4] be 4 instead of just 2. As a result,\u00a0 \u00a0width\u00a0 \u00a0of\u00a0 \u00a0each\u00a0 \u00a0rectangle\u00a0 \u00a0would\u00a0 \u00a0be\u00a0 \u00a0now\u00a0 \u00a00.5.\u00a0 \u00a0Heights\u00a0 \u00a0would\u00a0 \u00a0be giving 4, 6.25, 9, and 12.25 respectively.\r\n\r\n<\/div>\r\n<img class=\" wp-image-66 aligncenter\" src=\"http:\/\/itp15.epgpbooks.inflibnet.ac.in\/wp-content\/uploads\/sites\/26\/2018\/07\/dsafdsa.png\" alt=\"\" width=\"607\" height=\"377\" \/>\r\n<div>\r\n\r\n&nbsp;\r\n\r\nThus,\r\n\r\n&nbsp;\r\n\r\n= 0.5 (4 + 6.25 + 9 + 12.25)\r\n\r\n= \u00a015.75\r\n\r\n&nbsp;\r\n\r\nTruncation Error = 18.67 \u2013 15.75 = 2.92 (reduction from 5.67 to 2.92)\r\n\r\n&nbsp;\r\n\r\nLet us reduce the size of subintervals still further: say now 8 subintervals of length 0.25. Then,\r\n\r\n= 0.25(\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 \u00a0)\r\n\r\n= 0.25* (4+5.0625 + 6.25 + 7.5625 +9 +10.5625 +12.25 +14.0625 +17.1875)\r\n\r\n= 0.25 * 68.75\r\n\r\n= 17.1875\r\n\r\n&nbsp;\r\n\r\nTruncation Error = 18.6667 \u2013 17.1875 = 1.4792\r\n\r\n&nbsp;\r\n\r\nSo,reduction of step size (increasing number of steps)makes the method more nearer to reality and truncation error reduces.\r\n\r\n<\/div>\r\n&nbsp;\r\n\r\n<strong style=\"text-align: initial; font-size: 1em;\">c.\u00a0<\/strong><strong style=\"text-align: initial; font-size: 1em;\">Truncation Error in Iterative steps<\/strong>\r\n\r\n&nbsp;\r\n<p style=\"text-align: justify;\"><span style=\"text-align: initial; font-size: 1em;\">Similarly, if we take the method of finding roots of an equation\u00a0\u00a0 \u00a0(\u00a0\u00a0)\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 \u00a0in Bisection method the truncation error is bounded by ;|E |\u00a0\u00a0\u00a0\u00a0\u00a0<\/span><del style=\"text-align: initial; font-size: 1em;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 \u00a0<\/del><span style=\"text-align: initial; font-size: 1em;\">, where k is the iteration step number \u00a0and <\/span><em style=\"text-align: initial; font-size: 1em;\">a <\/em><span style=\"text-align: initial; font-size: 1em;\">and <\/span><em style=\"text-align: initial; font-size: 1em;\">b <\/em><span style=\"text-align: initial; font-size: 1em;\">are the end points of the interval, within\u00a0which the root lies. As k\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 \u00a0But the method can not go on, the iteration process would be stopped after a fixed number of iterations (say <\/span><em style=\"text-align: initial; font-size: 1em;\">n<\/em><span style=\"text-align: initial; font-size: 1em;\">),\u00a0<\/span><span style=\"text-align: initial; font-size: 1em;\">leading to Truncation error\u00a0<span style=\"text-decoration: line-through;\">\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0\u00a0<\/span><\/span><span style=\"text-align: initial; font-size: 1em;\">; again confirming that truncation error\u00a0<\/span><span style=\"font-size: 1em; text-align: initial;\">reduces with increased number of iterations.<\/span><\/p>\r\n\r\n<div>\r\n\r\n&nbsp;\r\n\r\n<strong>d. Truncation error in Numerical Differentiation\u00a0<\/strong>\r\n\r\n&nbsp;\r\n\r\nAgain for simplicity and no round off error take\u00a0\u00a0 \u00a0(\u00a0\u00a0)\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 \u00a0and let us estimate derivative at x = 2.\u00a0\u00a0\u00a0\u00a0 \u00a0(\u00a0\u00a0)\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 \u00a0;\u00a0\u00a0 \u00a0(\u00a0\u00a0)\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 \u00a0(True Value)\r\n\r\n(\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 \u00a0)\u00a0\u00a0\u00a0\u00a0 \u00a0( \u00a0)\r\n\r\nWe know, derivative is defined as\u00a0\u00a0 \u00a0(\u00a0\u00a0)\r\n\r\nLet us estimate derivative at 2 by taking <em>h <\/em>= 0.1\r\n\r\n<\/div>\r\n<span style=\"text-align: initial; font-size: 1em;\">\u00a0 (\u00a0\u00a0)\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0<del> \u00a0(\u00a0\u00a0\u00a0\u00a0 \u00a0)\u00a0\u00a0<\/del>\u00a0\u00a0 \u00a0( \u00a0)\u00a0<\/span><span style=\"text-align: initial; font-size: 1em;\">=<del>\u00a0 \u00a0 \u00a0 \u00a0 \u00a0<\/del> \u00a0 <del>\u00a0 \u00a0<\/del> <del>\u00a0 \u00a0 \u00a0\u00a0<\/del><\/span><span style=\"text-align: initial; font-size: 1em;\">=\u00a0<\/span><span style=\"text-align: initial; font-size: 1em;\">12. 61; giving |\u00a0 \u00a0<\/span><span style=\"text-align: initial; font-size: 1em;\">| = 0.61 and relative\u00a0<\/span><span style=\"text-align: initial; font-size: 1em;\">absolute error as\u00a0 \u00a0 \u00a0<del> \u00a0 \u00a0 \u00a0\u00a0<\/del><\/span><span style=\"text-align: initial; font-size: 1em;\">* 100 = 5.08%<\/span>\r\n\r\n&nbsp;\r\n\r\n<img class=\" wp-image-67 aligncenter\" src=\"http:\/\/itp15.epgpbooks.inflibnet.ac.in\/wp-content\/uploads\/sites\/26\/2018\/07\/safdsa.png\" alt=\"\" width=\"678\" height=\"349\" \/>\r\n\r\n&nbsp;\r\n\r\n<span style=\"text-align: initial; font-size: 1em;\">If we reduce <\/span><em style=\"text-align: initial; font-size: 1em;\">h <\/em><span style=\"text-align: initial; font-size: 1em;\">to 0.05 and repeat the same exercise, estimate obtained is<\/span>\r\n\r\n<span style=\"text-align: initial; font-size: 1em;\">\u00a0 (\u00a0\u00a0)\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 <del>\u00a0(\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 \u00a0)\u00a0\u00a0\u00a0\u00a0 \u00a0( \u00a0)\u00a0\u00a0<\/del><\/span><span style=\"text-align: initial; font-size: 1em;\">-\u00a0<del> \u00a0 \u00a0 \u00a0 \u00a0 \u00a0<\/del>\u00a0-<del>\u00a0 \u00a0 \u00a0 \u00a0 \u00a0<\/del><\/span><span style=\"text-align: initial; font-size: 1em;\">=<\/span><span style=\"text-align: initial; font-size: 1em;\">\u00a012. 3025 giving |\u00a0 \u00a0\u00a0<\/span><span style=\"text-align: initial; font-size: 1em;\">| = 0.3025<\/span>\r\n\r\n<span style=\"text-align: initial; font-size: 1em;\">and relative absolute error as\u00a0 <del>\u00a0 \u00a0 \u00a0 \u00a0 \u00a0<\/del><\/span><span style=\"text-align: initial; font-size: 1em;\">* 100 = 2.52%<\/span>\r\n<div>\r\n\r\n&nbsp;\r\n\r\n<strong><span style=\"font-size: 1em; text-align: initial;\">e. Observations\u00a0<\/span><\/strong>\r\n\r\n&nbsp;\r\n<p style=\"text-align: justify;\"><span style=\"text-align: justify; font-size: 1em;\">Truncation Error arises due to numerical approximation method being applied to solve the problem and is basically due to truncating the process to finite number of steps. As step size is reduced, Truncation Error decreases. Step size and number of steps are related by; <\/span><em style=\"text-align: justify; font-size: 1em;\">Reduction in step size Increase in number of steps.<\/em><\/p>\r\n\r\n<\/div>\r\n<div>\r\n\r\n&nbsp;\r\n\r\n<strong>5. Round off Errors\u00a0<\/strong>\r\n\r\n&nbsp;\r\n<p style=\"text-align: justify;\">Round off errors occur due to finite precision in a computer. A number may not always have a finite representation, e.g.<\/p>\r\n&nbsp;\r\n\r\n= 0.3333. . .\r\n\r\n&nbsp;\r\n\r\n\u221a\u00a0\u00a0\u00a0 \u00a0= 1.4142135623. . .\r\n\r\n= 2.71828182845. . .. ;\r\n\r\n&nbsp;\r\n<p style=\"text-align: justify;\">Whereas, 2, 10, 9.32 have finite representation in decimal system. Moreover, a number having finite representation in one number system may not have finite representation in another number system, for example<\/p>\r\n(\u00a0\u00a0\u00a0 \u00a0)\u00a0\u00a0\u00a0 \u00a0=(\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 \u00a0)\r\n\r\nOne can never represent 1.1 exactly in binary system. So, let us understand first how a number is stored in a computer.\r\n\r\n&nbsp;\r\n\r\n<strong>a. Floating Point representation\u00a0<\/strong>\r\n\r\n&nbsp;\r\n<p style=\"text-align: justify;\">Let us use decimal system for illustration for our convenience. Suppose we have five boxes in addition to decimal sign for storing a number , position of decimal sign is fixed , so 562.36 is represented as<\/p>\r\n\r\n<\/div>\r\n<img class=\"size-full wp-image-74 aligncenter\" src=\"http:\/\/itp15.epgpbooks.inflibnet.ac.in\/wp-content\/uploads\/sites\/26\/2018\/07\/Floating.png\" alt=\"\" width=\"316\" height=\"65\" \/>\r\n<p style=\"text-align: justify;\">If the number to be represented is 458.9875, it has two extra digits, for which no space is available, then there are two ways of representing it. Either chop the number and store it as 458.98, or round to the nearest digit and represent it as\u00a0<span style=\"font-size: 1em; text-align: initial;\">458.99 (rounding). Error due to rounding 458.99-458.9875 = .0025 and relative error is .0025\/458.9875 = 0.000545%<\/span><\/p>\r\n\r\n<div>\r\n\r\n&nbsp;\r\n\r\nNow, let us take the other case:\r\n\r\n&nbsp;\r\n<p style=\"text-align: justify;\">If the number to be represented is 5.9875, it also has two extra digits, for which no space is available; then again, there are two ways of representing it. Either chop the number and store it as 5.98, or round to the nearest digit and represent it as 5.99 (rounding).<\/p>\r\n\r\n<\/div>\r\n<img class=\"size-full wp-image-73 aligncenter\" src=\"http:\/\/itp15.epgpbooks.inflibnet.ac.in\/wp-content\/uploads\/sites\/26\/2018\/07\/Floating2.png\" alt=\"\" width=\"335\" height=\"88\" \/>\r\n<p style=\"text-align: justify;\">Error due to rounding 5.99-5.9875 = .0025 and relative error is .0025\/5.9875 = 0.041754%. The point to be noted is, though rounding off error is same, but relative error has increased.<\/p>\r\n&nbsp;\r\n\r\n<strong>b. Normalized Floating Point Representation\u00a0<\/strong>\r\n\r\n&nbsp;\r\n<p style=\"text-align: justify;\">Normalized Floating Point Representation is designed to keep the relative errors of the same order for small and large numbers and also to be able to store higher range in the same space. We can express \u00a0562.36 as + 5.6236 * and 0.0056236 as 5.6236 *\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 \u00a0.<\/p>\r\n<img class=\"size-full wp-image-72 aligncenter\" src=\"http:\/\/itp15.epgpbooks.inflibnet.ac.in\/wp-content\/uploads\/sites\/26\/2018\/07\/Floating3.png\" alt=\"\" width=\"319\" height=\"67\" \/>\r\n<p style=\"text-align: justify;\">This is the base of Scientific notation. In this notation, exactly one non-zero digit appears before decimal point. Its advantage is, its efficiency in representing very small or very large numbers and relative error in representation of large and small numbers are of the same order.<\/p>\r\n<img class=\" wp-image-71 aligncenter\" src=\"http:\/\/itp15.epgpbooks.inflibnet.ac.in\/wp-content\/uploads\/sites\/26\/2018\/07\/Floating4.png\" alt=\"\" width=\"492\" height=\"94\" \/>\r\n\r\n&nbsp;\r\n\r\n<strong><span style=\"text-align: initial; font-size: 1em;\">c.\u00a0 IEEE754 Floating-Point Standards\u00a0<\/span><\/strong>\r\n\r\n&nbsp;\r\n\r\nSingle Precision (32-bit representation) is as follows:\r\n\r\n1-bit Sign + 8-bit Exponent + 23-bit Fraction (Mantissa)\r\n\r\n<img class=\" wp-image-70 aligncenter\" src=\"http:\/\/itp15.epgpbooks.inflibnet.ac.in\/wp-content\/uploads\/sites\/26\/2018\/07\/ieee.png\" alt=\"\" width=\"502\" height=\"49\" \/>\r\n\r\nDouble Precision (64-bit representation) is as follows:\r\n\r\n1-bit Sign + 11-bit Exponent + 52-bit Fraction\r\n\r\n<img class=\"wp-image-69 aligncenter\" src=\"http:\/\/itp15.epgpbooks.inflibnet.ac.in\/wp-content\/uploads\/sites\/26\/2018\/07\/ieee1.png\" alt=\"\" width=\"524\" height=\"39\" \/>\r\n\r\n&nbsp;\r\n\r\n<strong>6. Error Propagation<\/strong>\r\n\r\n&nbsp;\r\n\r\nEvery arithmetic computation in digital arithmetic leads to compounding of rounding off errors as follows:\r\n\r\n+\u00a0\u00a0\u00a0 \u00a0+\r\n\r\nR\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 \u00a0+\r\n\r\nRounding off Error increase with increase in computations, the higher the number of\r\n\r\nsteps, the more shall be the rounding error.\r\n\r\n&nbsp;\r\n\r\nFor example, suppose we wish to compute: 3.578 * 2.139, using a calculator with two-digit fractions. Then\r\n\r\n<img class=\"wp-image-68 aligncenter\" src=\"http:\/\/itp15.epgpbooks.inflibnet.ac.in\/wp-content\/uploads\/sites\/26\/2018\/07\/error.png\" alt=\"\" width=\"345\" height=\"75\" \/>\r\n\r\n&nbsp;\r\n\r\n<strong>7.\u00a0 Total Numerical error (Computational)\u00a0<\/strong>\r\n\r\n&nbsp;\r\n\r\n<strong>Total Numerical Error = Truncation error + Round-off error<\/strong>\r\n\r\n&nbsp;\r\n<p style=\"text-align: justify;\">The only advisable way to reduce round-off errors is to increase number of significant digits. The round-off error increases due to either subtractive cancellation or due to increase in the number of computations in an analysis (smaller step size). The truncation errors can be reduced by decreasing step size. So, determining appropriate step size is essential in order to balance truncation and round-off errors to minimize the total error.<\/p>\r\n&nbsp;\r\n\r\n<strong>8. Control of Numerical errors<\/strong>\r\n\r\n&nbsp;\r\n<p style=\"text-align: justify;\">In most practical cases, we do not know the exact error associated with numerical methods. Also, there are no systematic and general approaches to evaluate numerical errors for all problems. However, there are several practical programming guidelines for controlling numerical errors.<\/p>\r\n&nbsp;\r\n<p style=\"text-align: justify;\">(i) Avoid subtracting two nearly equal numb Try\u00a0 to\u00a0 rearrange the formula if possible to avoid subtractive cancellation.<\/p>\r\n<p style=\"text-align: justify;\">(ii) When adding or subtracting numbers, it is best to sort the numbers and work with smallest numbers first. This avoids loss of significanc<\/p>\r\n<p style=\"text-align: justify;\">(iii) Attempt to predict total numerical errors by theoretical formula ti This may get quite complicated and therefore can be attempted for only small scale tasks.<\/p>\r\n<p style=\"text-align: justify;\">(iv) Estimate the accuracy of your results by seeing if the results obtained satisfy some condition or equation as a check.<\/p>\r\n<p style=\"text-align: justify;\">(v) One should be prepared to perform numerical experiments to increase one\u2019s awareness of computational errors and possible ill-conditioned problem (If the problem is ill conditioned, a small error in initial data creates large errors in the answer. So, inherent errors in ill conditioned problems can create havoc.) Such experiments may involve repeating the computation with a different step-size, or method and comparing the results.<\/p>\r\n<p style=\"text-align: justify;\">(vi) As learned by now, any Numerical computation is susceptible to different types of\u00a0errors. The errors may be related to required initial data. And hence it is essential to carry out sensitivity analysis for such methods. (By what amount the answer changes as a result of change in inputs). If making small changes in the input data leads to large change in the solution then such a computation is called numerically unstable. One needs to take appropriate measures to ensure that the methods that we use are relatively stable.<\/p>\r\n<table>\r\n<tbody>\r\n<tr>\r\n<td><strong>you can view video on Sources and Types of Errors<\/strong><\/td>\r\n<td><a href=\"https:\/\/youtu.be\/smyeAUdig30\" target=\"_blank\" rel=\"noopener\"><img class=\"alignnone wp-image-120\" src=\"http:\/\/epgpbooks.inflibnet.ac.in\/wp-content\/uploads\/2018\/11\/download.png\" alt=\"\" width=\"36\" height=\"36\" \/><\/a><\/td>\r\n<\/tr>\r\n<\/tbody>\r\n<\/table>\r\n<p style=\"text-align: justify;\"><strong>Suggested Reading:<\/strong><\/p>\r\n&nbsp;\r\n<div>1.\u00a0Numerical Methods for Engineers by Steven C Chapra &amp; Raymond P Canale, Fifth Edition, Tata McGraw Hill Publication, Special Indian Edition.<\/div>\r\n<div>2. A Friendly Introduction to Numerical Analysis by Brian Bradie, Pearson<\/div>\r\n<div>Education.<\/div>\r\n<div>3. Numerical Mathematics and Computing by Ward Cheney &amp; David Kincaid, fifth Edition, Cengage Learning.<\/div>\r\n<div>4. Computer Oriented Numerical Methods by Dr. N Datta, Vikas Publication.<\/div>\r\n<div>5. Numerical Methods with Programs in C by T Veerarajan &amp; T Ramachandran, Second Edition, Tata McGraw<\/div>\r\n<div>Hill Publication.<\/div>\r\n<div>6. Numerical Methods by V. Rajaraman, Third Edition, Prentice - Hall India Pvt. Ltd.<\/div>\r\n<div>7. Numerical Methods with C++ Programming by RM Somasundaram &amp; RM Chandrasekaran, Prentice - Hall India Pvt. Ltd.<\/div>\r\n<div>8.\u00a0Applied Numerical Analysis by C F Gerald &amp; P O Wheatley, Seventh Edition, Pearson Education Asia, New Delhi.<\/div>\r\n<div>9.\u00a0Numerical Methods by Dr. V. N. Vedamurthy &amp; Dr. N.Ch. S.N. Iyengar, Vikas Publication.<\/div>\r\n<div>10. Numerical Analysis by Richard L. Burden, J. Douglas Faires, Cengage Publishcation.<\/div>\r\n<div>11. Numerical Methods with programs in BASIC, FORTRAN, Pascal and C++ by S. Balachandra Rao &amp; C. K. Shantha, Revised Edition, Universities Press.<\/div>\r\n<div>12.\u00a0A Textbook of Computer Based Numerical and Statistical Techniques by A. K. Jaiswal &amp; Anju Khandelwal, New Age International (P) Ltd, Publishers.<\/div>\r\n<div>13.\u00a0http:\/\/www.math.niu.edu\/~dattab\/MATH435.2013\/<\/div>\r\n&nbsp;","rendered":"<div><span style=\"float: right;\"><a href=\"https:\/\/youtu.be\/smyeAUdig30\" target=\"_blank\" rel=\"noopener\"><img decoding=\"async\" src=\"http:\/\/epgpbooks.inflibnet.ac.in\/wp-content\/uploads\/2018\/11\/download.png\" alt=\"epgp books\" width=\"75px\" height=\"75px;\" \/><\/a><br \/>\n<\/span><\/div>\n<div>\n<p>&nbsp;<\/p>\n<p><strong>1.\u00a0 Introduction\u00a0<\/strong><\/p>\n<p>&nbsp;<\/p>\n<p style=\"text-align: justify;\">In previous module, we learned about different characteristics of numerical methods. One important characteristic of numerical methods is that solutions are supposed to be approximate in nature. We also learned about different measures of error like True Error, approximate absolute error, relative error, percentage error etc. In this module our main focus is on different sources of errors and types of errors which occur during numerical computations.<\/p>\n<\/div>\n<div>\n<p>&nbsp;<\/p>\n<p><strong>2.\u00a0 Significant Digit\u00a0<\/strong><\/p>\n<p>&nbsp;<\/p>\n<p style=\"text-align: justify;\">Many times, especially in determination of scientific constants, for example, Elasticity constants, gravitational constants, Heat constants, approximate solutions obtained are needed to be correct to certain number of significant digits. Before we understand, why so, let us understand the concept of significant digit. When is a digit said to be significant?<\/p>\n<p>&nbsp;<\/p>\n<p style=\"text-align: justify;\">(i) Every nonzero digit is significant. If a number does not contain any zero, all digits of it are significant. Only when a number contains zeroes, number of significant digits may be different from number of decimal digits in a number. Thus, 9.5763 has 5 significant digits, 492 has 3 significant digits.<\/p>\n<p>&nbsp;<\/p>\n<p style=\"text-align: justify;\">(ii) Zero may be significant or may not be significant. Zeros between non-zero digits are always significant. So, 2047 has 4 significant digits , 50.032 has 5 significant digits<\/p>\n<p>&nbsp;<\/p>\n<p style=\"text-align: justify;\">(iii) Leading zeros, that is, zeros before non-zero digits are <strong>not <\/strong>significant; for example, 0.0123 has 3 significant digits namely 1, 2 and 3. Similarly, 0.0000000123 also has 3 significant digits only.<\/p>\n<p>&nbsp;<\/p>\n<p style=\"text-align: justify;\"><span style=\"text-align: initial; font-size: 1em;\">(iv) Trailing zeros, that is, zeros behind non-zero digits are <\/span><strong style=\"text-align: initial; font-size: 1em;\">sometimes <\/strong><span style=\"text-align: initial; font-size: 1em;\">significant; zeros after decimal point are significant. \u00a03.000 has 4 significant digits but 3000 has only 1 significant digit as trailing zeroes are not occurring after decimal point.<\/span><\/p>\n<p>&nbsp;<\/p>\n<p style=\"text-align: justify;\"><strong style=\"text-align: initial; font-size: 1em;\">Illustration 1:<\/strong><\/p>\n<p>&nbsp;<\/p>\n<p style=\"text-align: justify;\"><span style=\"text-align: initial; font-size: 1em;\">\u2022\u00a0\u00a0\u00a0\u00a0 6.4320 has 5 significant digits\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 (case (iv))<\/span><\/p>\n<p style=\"text-align: justify;\"><span style=\"text-align: initial; font-size: 1em;\">\u2022\u00a0\u00a0\u00a0\u00a0 0.06432 has 4 significant digits\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 (case (iii))<\/span><\/p>\n<p style=\"text-align: justify;\"><span style=\"text-align: initial; font-size: 1em;\">\u2022\u00a0\u00a0\u00a0\u00a0 64 has 2 significant digits\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 (case (i))<\/span><\/p>\n<p style=\"text-align: justify;\"><span style=\"text-align: initial; font-size: 1em;\">\u2022\u00a0\u00a0\u00a0\u00a0 64.0 has 3 significant digits\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 (case (iv))<\/span><\/p>\n<p style=\"text-align: justify;\"><span style=\"text-align: initial; font-size: 1em;\">\u2022\u00a0\u00a0\u00a0\u00a0 6.432*\u00a0\u00a0\u00a0\u00a0\u00a0 \u00a0has 4 significant digits\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 (case (iv))<\/span><\/p>\n<p style=\"text-align: justify;\"><span style=\"text-align: initial; font-size: 1em;\">\u2022\u00a0\u00a0\u00a0\u00a0 6.43200 has 6 significant digits\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 (case (iv))<\/span><\/p>\n<p style=\"text-align: justify;\"><span style=\"text-align: initial; font-size: 1em;\">\u2022\u00a0\u00a0\u00a0\u00a0 2000 has 1 significant digits\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 (case (iv))<\/span><\/p>\n<\/div>\n<div>\n<p>&nbsp;<\/p>\n<p style=\"text-align: justify;\">Having understood, concept of significant digit, let us have a look at the situation, where answer correct to certain number of significant digits , rather than certain number of decimal digits becomes a must. When an answer falls under case (iii), answer being numerically less than 1, it would have leading zeroes. When such a constant is to be determined, one is required to give first few non-zero numbers. That time, answer correct to fixed number of decimal places may yield the answer as 0. Let us suppose the answer to be determined has value 0.0000000011457648. Answer correct to six decimal places is 0.000000 whereas answer correct to six significant digits is 0.00000000114576. On the other hand, if value 1.00636; then answer correct to three decimal places is 1.006 and answer correct to three significant places is also 1.006. If non-significant zeros are there in a number then two answers differ.<\/p>\n<p>&nbsp;<\/p>\n<p><strong>3. Sources and Types of Errors\u00a0<\/strong><\/p>\n<p>&nbsp;<\/p>\n<p style=\"text-align: justify;\">When a mathematically formulated problem comes to numerical analyst, it is likely that it contains many different errors. They may have occurred due to Mathematical Modeling of the problem, limitations of measurement tools and methods or\/and errors committed by humans unintentionally or due to their non-commitment. As such nothing can be done to reduce or remove them. These errors being inherited by the numerical analyst are called <strong>Inherent Errors<\/strong>. Two types of errors occur in implementation of numerical methods on computer, classified as <strong>Truncation Error <\/strong>and <strong>Round off Error<\/strong>.<\/p>\n<p>&nbsp;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-58 aligncenter\" src=\"http:\/\/itp15.epgpbooks.inflibnet.ac.in\/wp-content\/uploads\/sites\/26\/2018\/07\/Sources-and-Types-of-Errors.png\" alt=\"\" width=\"741\" height=\"419\" srcset=\"https:\/\/ebooks.inflibnet.ac.in\/itp15\/wp-content\/uploads\/sites\/26\/2018\/07\/Sources-and-Types-of-Errors.png 1029w, https:\/\/ebooks.inflibnet.ac.in\/itp15\/wp-content\/uploads\/sites\/26\/2018\/07\/Sources-and-Types-of-Errors-300x170.png 300w, https:\/\/ebooks.inflibnet.ac.in\/itp15\/wp-content\/uploads\/sites\/26\/2018\/07\/Sources-and-Types-of-Errors-768x434.png 768w, https:\/\/ebooks.inflibnet.ac.in\/itp15\/wp-content\/uploads\/sites\/26\/2018\/07\/Sources-and-Types-of-Errors-1024x579.png 1024w, https:\/\/ebooks.inflibnet.ac.in\/itp15\/wp-content\/uploads\/sites\/26\/2018\/07\/Sources-and-Types-of-Errors-65x37.png 65w, https:\/\/ebooks.inflibnet.ac.in\/itp15\/wp-content\/uploads\/sites\/26\/2018\/07\/Sources-and-Types-of-Errors-225x127.png 225w, https:\/\/ebooks.inflibnet.ac.in\/itp15\/wp-content\/uploads\/sites\/26\/2018\/07\/Sources-and-Types-of-Errors-350x198.png 350w\" sizes=\"auto, (max-width: 741px) 100vw, 741px\" \/><\/p>\n<\/div>\n<div>\n<p>&nbsp;<\/p>\n<p><strong>4.\u00a0 Truncation Error\u00a0<\/strong><\/p>\n<p>&nbsp;<\/p>\n<p style=\"text-align: justify;\">Truncation Error is an error in implementation of numerical approximation method occurring due\u00a0 to truncating a process involving infinite number of\u00a0 steps to\u00a0 finite number of steps, like:<\/p>\n<p>&nbsp;<\/p>\n<p>(i) Limiting infinite series to finite number of terms<\/p>\n<p>(ii) Limiting infinite number of iterations to finite number of iterations (f(x) = 0)<\/p>\n<p>(iii) Taking finite step size instead of infinitesimal step size (Numerical Differentiation and Numerical Integration)<\/p>\n<p>&nbsp;<\/p>\n<p><strong>a. Limiting infinite series to finite number of terms\u00a0<\/strong><\/p>\n<\/div>\n<div>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-59\" src=\"http:\/\/itp15.epgpbooks.inflibnet.ac.in\/wp-content\/uploads\/sites\/26\/2018\/07\/Limiting-infinite.png\" alt=\"\" width=\"624\" height=\"233\" srcset=\"https:\/\/ebooks.inflibnet.ac.in\/itp15\/wp-content\/uploads\/sites\/26\/2018\/07\/Limiting-infinite.png 661w, https:\/\/ebooks.inflibnet.ac.in\/itp15\/wp-content\/uploads\/sites\/26\/2018\/07\/Limiting-infinite-300x112.png 300w, https:\/\/ebooks.inflibnet.ac.in\/itp15\/wp-content\/uploads\/sites\/26\/2018\/07\/Limiting-infinite-65x24.png 65w, https:\/\/ebooks.inflibnet.ac.in\/itp15\/wp-content\/uploads\/sites\/26\/2018\/07\/Limiting-infinite-225x84.png 225w, https:\/\/ebooks.inflibnet.ac.in\/itp15\/wp-content\/uploads\/sites\/26\/2018\/07\/Limiting-infinite-350x131.png 350w\" sizes=\"auto, (max-width: 624px) 100vw, 624px\" \/><\/p>\n<\/div>\n<p><span style=\"text-align: initial; font-size: 1em;\"><strong>Illustration 1<\/strong>:\u00a0<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"text-align: initial; font-size: 1em;\">Estimate for different no of terms and calculate relative % approximate error (Exact value of upto 5 decimal places is 1.64872)<\/span><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-62 aligncenter\" src=\"http:\/\/itp15.epgpbooks.inflibnet.ac.in\/wp-content\/uploads\/sites\/26\/2018\/07\/tablen.png\" alt=\"\" width=\"722\" height=\"253\" srcset=\"https:\/\/ebooks.inflibnet.ac.in\/itp15\/wp-content\/uploads\/sites\/26\/2018\/07\/tablen.png 796w, https:\/\/ebooks.inflibnet.ac.in\/itp15\/wp-content\/uploads\/sites\/26\/2018\/07\/tablen-300x105.png 300w, https:\/\/ebooks.inflibnet.ac.in\/itp15\/wp-content\/uploads\/sites\/26\/2018\/07\/tablen-768x269.png 768w, https:\/\/ebooks.inflibnet.ac.in\/itp15\/wp-content\/uploads\/sites\/26\/2018\/07\/tablen-65x23.png 65w, https:\/\/ebooks.inflibnet.ac.in\/itp15\/wp-content\/uploads\/sites\/26\/2018\/07\/tablen-225x79.png 225w, https:\/\/ebooks.inflibnet.ac.in\/itp15\/wp-content\/uploads\/sites\/26\/2018\/07\/tablen-350x123.png 350w\" sizes=\"auto, (max-width: 722px) 100vw, 722px\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-61 alignnone\" src=\"http:\/\/itp15.epgpbooks.inflibnet.ac.in\/wp-content\/uploads\/sites\/26\/2018\/07\/for.png\" alt=\"\" width=\"464\" height=\"248\" srcset=\"https:\/\/ebooks.inflibnet.ac.in\/itp15\/wp-content\/uploads\/sites\/26\/2018\/07\/for.png 822w, https:\/\/ebooks.inflibnet.ac.in\/itp15\/wp-content\/uploads\/sites\/26\/2018\/07\/for-300x160.png 300w, https:\/\/ebooks.inflibnet.ac.in\/itp15\/wp-content\/uploads\/sites\/26\/2018\/07\/for-768x410.png 768w, https:\/\/ebooks.inflibnet.ac.in\/itp15\/wp-content\/uploads\/sites\/26\/2018\/07\/for-65x35.png 65w, https:\/\/ebooks.inflibnet.ac.in\/itp15\/wp-content\/uploads\/sites\/26\/2018\/07\/for-225x120.png 225w, https:\/\/ebooks.inflibnet.ac.in\/itp15\/wp-content\/uploads\/sites\/26\/2018\/07\/for-350x187.png 350w\" sizes=\"auto, (max-width: 464px) 100vw, 464px\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-60 alignnone\" src=\"http:\/\/itp15.epgpbooks.inflibnet.ac.in\/wp-content\/uploads\/sites\/26\/2018\/07\/for1.png\" alt=\"\" width=\"486\" height=\"264\" srcset=\"https:\/\/ebooks.inflibnet.ac.in\/itp15\/wp-content\/uploads\/sites\/26\/2018\/07\/for1.png 800w, https:\/\/ebooks.inflibnet.ac.in\/itp15\/wp-content\/uploads\/sites\/26\/2018\/07\/for1-300x163.png 300w, https:\/\/ebooks.inflibnet.ac.in\/itp15\/wp-content\/uploads\/sites\/26\/2018\/07\/for1-768x418.png 768w, https:\/\/ebooks.inflibnet.ac.in\/itp15\/wp-content\/uploads\/sites\/26\/2018\/07\/for1-65x35.png 65w, https:\/\/ebooks.inflibnet.ac.in\/itp15\/wp-content\/uploads\/sites\/26\/2018\/07\/for1-225x122.png 225w, https:\/\/ebooks.inflibnet.ac.in\/itp15\/wp-content\/uploads\/sites\/26\/2018\/07\/for1-350x190.png 350w\" sizes=\"auto, (max-width: 486px) 100vw, 486px\" \/><\/p>\n<p>Remainder Term R<sub>n<\/sub> is the Truncation error term.<\/p>\n<p>&nbsp;<\/p>\n<p><strong><span style=\"text-align: initial; font-size: 1em;\">b. Truncation Error in Numerical Integration<\/span><\/strong><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"text-align: initial; font-size: 1em;\">We know, numerical integration \u222b\u00a0\u00a0\u00a0\u00a0 \u00a0(\u00a0\u00a0)\u00a0\u00a0\u00a0\u00a0\u00a0 \u00a0gives area under the curve\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 \u00a0(\u00a0\u00a0)\u00a0<\/span><span style=\"text-align: initial; font-size: 1em;\">from <\/span><em style=\"text-align: initial; font-size: 1em;\">x <\/em><span style=\"text-align: initial; font-size: 1em;\">= <\/span><em style=\"text-align: initial; font-size: 1em;\">a <\/em><span style=\"text-align: initial; font-size: 1em;\">to <\/span><em style=\"text-align: initial; font-size: 1em;\">x <\/em><span style=\"text-align: initial; font-size: 1em;\">= <\/span><em style=\"text-align: initial; font-size: 1em;\">b<\/em><span style=\"text-align: initial; font-size: 1em;\">.<\/span><\/p>\n<div>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-63 aligncenter\" src=\"http:\/\/itp15.epgpbooks.inflibnet.ac.in\/wp-content\/uploads\/sites\/26\/2018\/07\/area.png\" alt=\"\" width=\"721\" height=\"359\" srcset=\"https:\/\/ebooks.inflibnet.ac.in\/itp15\/wp-content\/uploads\/sites\/26\/2018\/07\/area.png 847w, https:\/\/ebooks.inflibnet.ac.in\/itp15\/wp-content\/uploads\/sites\/26\/2018\/07\/area-300x149.png 300w, https:\/\/ebooks.inflibnet.ac.in\/itp15\/wp-content\/uploads\/sites\/26\/2018\/07\/area-768x383.png 768w, https:\/\/ebooks.inflibnet.ac.in\/itp15\/wp-content\/uploads\/sites\/26\/2018\/07\/area-65x32.png 65w, https:\/\/ebooks.inflibnet.ac.in\/itp15\/wp-content\/uploads\/sites\/26\/2018\/07\/area-225x112.png 225w, https:\/\/ebooks.inflibnet.ac.in\/itp15\/wp-content\/uploads\/sites\/26\/2018\/07\/area-350x174.png 350w\" sizes=\"auto, (max-width: 721px) 100vw, 721px\" \/><\/p>\n<p>&nbsp;<\/p>\n<\/div>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-64\" src=\"http:\/\/itp15.epgpbooks.inflibnet.ac.in\/wp-content\/uploads\/sites\/26\/2018\/07\/let-us.png\" alt=\"\" width=\"360\" height=\"168\" srcset=\"https:\/\/ebooks.inflibnet.ac.in\/itp15\/wp-content\/uploads\/sites\/26\/2018\/07\/let-us.png 313w, https:\/\/ebooks.inflibnet.ac.in\/itp15\/wp-content\/uploads\/sites\/26\/2018\/07\/let-us-300x140.png 300w, https:\/\/ebooks.inflibnet.ac.in\/itp15\/wp-content\/uploads\/sites\/26\/2018\/07\/let-us-65x30.png 65w, https:\/\/ebooks.inflibnet.ac.in\/itp15\/wp-content\/uploads\/sites\/26\/2018\/07\/let-us-225x105.png 225w\" sizes=\"auto, (max-width: 360px) 100vw, 360px\" \/><\/p>\n<p style=\"text-align: justify;\"><span style=\"text-align: justify; font-size: 1em;\">rounded to 2 decimal places. Now, Let us\u00a0<\/span><span style=\"font-size: 1em; text-align: initial;\">apply numerical approximation method. For simplicity, ease, convenience and to\u00a0<\/span><span style=\"text-align: initial; font-size: 1em;\">avoid round off errors, let us take rectangles of width 1 from 2 to 4 and sum up\u00a0<\/span><span style=\"font-size: 1em; text-align: initial;\">their areas as an estimate of the integral \u222b\u00a0\u00a0\u00a0\u00a0\u00a0 \u00a0dx.<\/span><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-65 aligncenter\" src=\"http:\/\/itp15.epgpbooks.inflibnet.ac.in\/wp-content\/uploads\/sites\/26\/2018\/07\/integ.png\" alt=\"\" width=\"614\" height=\"395\" srcset=\"https:\/\/ebooks.inflibnet.ac.in\/itp15\/wp-content\/uploads\/sites\/26\/2018\/07\/integ.png 656w, https:\/\/ebooks.inflibnet.ac.in\/itp15\/wp-content\/uploads\/sites\/26\/2018\/07\/integ-300x193.png 300w, https:\/\/ebooks.inflibnet.ac.in\/itp15\/wp-content\/uploads\/sites\/26\/2018\/07\/integ-65x42.png 65w, https:\/\/ebooks.inflibnet.ac.in\/itp15\/wp-content\/uploads\/sites\/26\/2018\/07\/integ-225x145.png 225w, https:\/\/ebooks.inflibnet.ac.in\/itp15\/wp-content\/uploads\/sites\/26\/2018\/07\/integ-350x225.png 350w\" sizes=\"auto, (max-width: 614px) 100vw, 614px\" \/><\/p>\n<p><span style=\"text-align: initial; font-size: 1em;\">This gives us:<\/span><\/p>\n<p><span style=\"text-align: initial; font-size: 1em;\">Estimated value\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 \u00a0= 1*4 + 1* 9 = 13 (Height\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 \u00a0)<\/span><\/p>\n<p><span style=\"text-align: initial; font-size: 1em;\">Truncation Error\u00a0 \u00a0 \u00a0 = 18.67 \u2013 13 = 5.67<\/span><\/p>\n<div>\n<p>&nbsp;<\/p>\n<p>Let us ask ourselves this question: What would happen, if we rework the same example with smaller width? (Smaller step size and increase the number\u00a0 of steps). So, let number of sub intervals now in [2, 4] be 4 instead of just 2. As a result,\u00a0 \u00a0width\u00a0 \u00a0of\u00a0 \u00a0each\u00a0 \u00a0rectangle\u00a0 \u00a0would\u00a0 \u00a0be\u00a0 \u00a0now\u00a0 \u00a00.5.\u00a0 \u00a0Heights\u00a0 \u00a0would\u00a0 \u00a0be giving 4, 6.25, 9, and 12.25 respectively.<\/p>\n<\/div>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-66 aligncenter\" src=\"http:\/\/itp15.epgpbooks.inflibnet.ac.in\/wp-content\/uploads\/sites\/26\/2018\/07\/dsafdsa.png\" alt=\"\" width=\"607\" height=\"377\" srcset=\"https:\/\/ebooks.inflibnet.ac.in\/itp15\/wp-content\/uploads\/sites\/26\/2018\/07\/dsafdsa.png 671w, https:\/\/ebooks.inflibnet.ac.in\/itp15\/wp-content\/uploads\/sites\/26\/2018\/07\/dsafdsa-300x186.png 300w, https:\/\/ebooks.inflibnet.ac.in\/itp15\/wp-content\/uploads\/sites\/26\/2018\/07\/dsafdsa-65x40.png 65w, https:\/\/ebooks.inflibnet.ac.in\/itp15\/wp-content\/uploads\/sites\/26\/2018\/07\/dsafdsa-225x140.png 225w, https:\/\/ebooks.inflibnet.ac.in\/itp15\/wp-content\/uploads\/sites\/26\/2018\/07\/dsafdsa-350x218.png 350w\" sizes=\"auto, (max-width: 607px) 100vw, 607px\" \/><\/p>\n<div>\n<p>&nbsp;<\/p>\n<p>Thus,<\/p>\n<p>&nbsp;<\/p>\n<p>= 0.5 (4 + 6.25 + 9 + 12.25)<\/p>\n<p>= \u00a015.75<\/p>\n<p>&nbsp;<\/p>\n<p>Truncation Error = 18.67 \u2013 15.75 = 2.92 (reduction from 5.67 to 2.92)<\/p>\n<p>&nbsp;<\/p>\n<p>Let us reduce the size of subintervals still further: say now 8 subintervals of length 0.25. Then,<\/p>\n<p>= 0.25(\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 \u00a0)<\/p>\n<p>= 0.25* (4+5.0625 + 6.25 + 7.5625 +9 +10.5625 +12.25 +14.0625 +17.1875)<\/p>\n<p>= 0.25 * 68.75<\/p>\n<p>= 17.1875<\/p>\n<p>&nbsp;<\/p>\n<p>Truncation Error = 18.6667 \u2013 17.1875 = 1.4792<\/p>\n<p>&nbsp;<\/p>\n<p>So,reduction of step size (increasing number of steps)makes the method more nearer to reality and truncation error reduces.<\/p>\n<\/div>\n<p>&nbsp;<\/p>\n<p><strong style=\"text-align: initial; font-size: 1em;\">c.\u00a0<\/strong><strong style=\"text-align: initial; font-size: 1em;\">Truncation Error in Iterative steps<\/strong><\/p>\n<p>&nbsp;<\/p>\n<p style=\"text-align: justify;\"><span style=\"text-align: initial; font-size: 1em;\">Similarly, if we take the method of finding roots of an equation\u00a0\u00a0 \u00a0(\u00a0\u00a0)\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 \u00a0in Bisection method the truncation error is bounded by ;|E |\u00a0\u00a0\u00a0\u00a0\u00a0<\/span><del style=\"text-align: initial; font-size: 1em;\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 \u00a0<\/del><span style=\"text-align: initial; font-size: 1em;\">, where k is the iteration step number \u00a0and <\/span><em style=\"text-align: initial; font-size: 1em;\">a <\/em><span style=\"text-align: initial; font-size: 1em;\">and <\/span><em style=\"text-align: initial; font-size: 1em;\">b <\/em><span style=\"text-align: initial; font-size: 1em;\">are the end points of the interval, within\u00a0which the root lies. As k\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 \u00a0But the method can not go on, the iteration process would be stopped after a fixed number of iterations (say <\/span><em style=\"text-align: initial; font-size: 1em;\">n<\/em><span style=\"text-align: initial; font-size: 1em;\">),\u00a0<\/span><span style=\"text-align: initial; font-size: 1em;\">leading to Truncation error\u00a0<span style=\"text-decoration: line-through;\">\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0\u00a0<\/span><\/span><span style=\"text-align: initial; font-size: 1em;\">; again confirming that truncation error\u00a0<\/span><span style=\"font-size: 1em; text-align: initial;\">reduces with increased number of iterations.<\/span><\/p>\n<div>\n<p>&nbsp;<\/p>\n<p><strong>d. Truncation error in Numerical Differentiation\u00a0<\/strong><\/p>\n<p>&nbsp;<\/p>\n<p>Again for simplicity and no round off error take\u00a0\u00a0 \u00a0(\u00a0\u00a0)\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 \u00a0and let us estimate derivative at x = 2.\u00a0\u00a0\u00a0\u00a0 \u00a0(\u00a0\u00a0)\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 \u00a0;\u00a0\u00a0 \u00a0(\u00a0\u00a0)\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 \u00a0(True Value)<\/p>\n<p>(\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 \u00a0)\u00a0\u00a0\u00a0\u00a0 \u00a0( \u00a0)<\/p>\n<p>We know, derivative is defined as\u00a0\u00a0 \u00a0(\u00a0\u00a0)<\/p>\n<p>Let us estimate derivative at 2 by taking <em>h <\/em>= 0.1<\/p>\n<\/div>\n<p><span style=\"text-align: initial; font-size: 1em;\">\u00a0 (\u00a0\u00a0)\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0<del> \u00a0(\u00a0\u00a0\u00a0\u00a0 \u00a0)\u00a0\u00a0<\/del>\u00a0\u00a0 \u00a0( \u00a0)\u00a0<\/span><span style=\"text-align: initial; font-size: 1em;\">=<del>\u00a0 \u00a0 \u00a0 \u00a0 \u00a0<\/del> \u00a0 <del>\u00a0 \u00a0<\/del> <del>\u00a0 \u00a0 \u00a0\u00a0<\/del><\/span><span style=\"text-align: initial; font-size: 1em;\">=\u00a0<\/span><span style=\"text-align: initial; font-size: 1em;\">12. 61; giving |\u00a0 \u00a0<\/span><span style=\"text-align: initial; font-size: 1em;\">| = 0.61 and relative\u00a0<\/span><span style=\"text-align: initial; font-size: 1em;\">absolute error as\u00a0 \u00a0 \u00a0<del> \u00a0 \u00a0 \u00a0\u00a0<\/del><\/span><span style=\"text-align: initial; font-size: 1em;\">* 100 = 5.08%<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-67 aligncenter\" src=\"http:\/\/itp15.epgpbooks.inflibnet.ac.in\/wp-content\/uploads\/sites\/26\/2018\/07\/safdsa.png\" alt=\"\" width=\"678\" height=\"349\" srcset=\"https:\/\/ebooks.inflibnet.ac.in\/itp15\/wp-content\/uploads\/sites\/26\/2018\/07\/safdsa.png 812w, https:\/\/ebooks.inflibnet.ac.in\/itp15\/wp-content\/uploads\/sites\/26\/2018\/07\/safdsa-300x154.png 300w, https:\/\/ebooks.inflibnet.ac.in\/itp15\/wp-content\/uploads\/sites\/26\/2018\/07\/safdsa-768x395.png 768w, https:\/\/ebooks.inflibnet.ac.in\/itp15\/wp-content\/uploads\/sites\/26\/2018\/07\/safdsa-65x33.png 65w, https:\/\/ebooks.inflibnet.ac.in\/itp15\/wp-content\/uploads\/sites\/26\/2018\/07\/safdsa-225x116.png 225w, https:\/\/ebooks.inflibnet.ac.in\/itp15\/wp-content\/uploads\/sites\/26\/2018\/07\/safdsa-350x180.png 350w\" sizes=\"auto, (max-width: 678px) 100vw, 678px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"text-align: initial; font-size: 1em;\">If we reduce <\/span><em style=\"text-align: initial; font-size: 1em;\">h <\/em><span style=\"text-align: initial; font-size: 1em;\">to 0.05 and repeat the same exercise, estimate obtained is<\/span><\/p>\n<p><span style=\"text-align: initial; font-size: 1em;\">\u00a0 (\u00a0\u00a0)\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 <del>\u00a0(\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 \u00a0)\u00a0\u00a0\u00a0\u00a0 \u00a0( \u00a0)\u00a0\u00a0<\/del><\/span><span style=\"text-align: initial; font-size: 1em;\">&#8211;\u00a0<del> \u00a0 \u00a0 \u00a0 \u00a0 \u00a0<\/del>\u00a0&#8211;<del>\u00a0 \u00a0 \u00a0 \u00a0 \u00a0<\/del><\/span><span style=\"text-align: initial; font-size: 1em;\">=<\/span><span style=\"text-align: initial; font-size: 1em;\">\u00a012. 3025 giving |\u00a0 \u00a0\u00a0<\/span><span style=\"text-align: initial; font-size: 1em;\">| = 0.3025<\/span><\/p>\n<p><span style=\"text-align: initial; font-size: 1em;\">and relative absolute error as\u00a0 <del>\u00a0 \u00a0 \u00a0 \u00a0 \u00a0<\/del><\/span><span style=\"text-align: initial; font-size: 1em;\">* 100 = 2.52%<\/span><\/p>\n<div>\n<p>&nbsp;<\/p>\n<p><strong><span style=\"font-size: 1em; text-align: initial;\">e. Observations\u00a0<\/span><\/strong><\/p>\n<p>&nbsp;<\/p>\n<p style=\"text-align: justify;\"><span style=\"text-align: justify; font-size: 1em;\">Truncation Error arises due to numerical approximation method being applied to solve the problem and is basically due to truncating the process to finite number of steps. As step size is reduced, Truncation Error decreases. Step size and number of steps are related by; <\/span><em style=\"text-align: justify; font-size: 1em;\">Reduction in step size Increase in number of steps.<\/em><\/p>\n<\/div>\n<div>\n<p>&nbsp;<\/p>\n<p><strong>5. Round off Errors\u00a0<\/strong><\/p>\n<p>&nbsp;<\/p>\n<p style=\"text-align: justify;\">Round off errors occur due to finite precision in a computer. A number may not always have a finite representation, e.g.<\/p>\n<p>&nbsp;<\/p>\n<p>= 0.3333. . .<\/p>\n<p>&nbsp;<\/p>\n<p>\u221a\u00a0\u00a0\u00a0 \u00a0= 1.4142135623. . .<\/p>\n<p>= 2.71828182845. . .. ;<\/p>\n<p>&nbsp;<\/p>\n<p style=\"text-align: justify;\">Whereas, 2, 10, 9.32 have finite representation in decimal system. Moreover, a number having finite representation in one number system may not have finite representation in another number system, for example<\/p>\n<p>(\u00a0\u00a0\u00a0 \u00a0)\u00a0\u00a0\u00a0 \u00a0=(\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 \u00a0)<\/p>\n<p>One can never represent 1.1 exactly in binary system. So, let us understand first how a number is stored in a computer.<\/p>\n<p>&nbsp;<\/p>\n<p><strong>a. Floating Point representation\u00a0<\/strong><\/p>\n<p>&nbsp;<\/p>\n<p style=\"text-align: justify;\">Let us use decimal system for illustration for our convenience. Suppose we have five boxes in addition to decimal sign for storing a number , position of decimal sign is fixed , so 562.36 is represented as<\/p>\n<\/div>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-74 aligncenter\" src=\"http:\/\/itp15.epgpbooks.inflibnet.ac.in\/wp-content\/uploads\/sites\/26\/2018\/07\/Floating.png\" alt=\"\" width=\"316\" height=\"65\" srcset=\"https:\/\/ebooks.inflibnet.ac.in\/itp15\/wp-content\/uploads\/sites\/26\/2018\/07\/Floating.png 316w, https:\/\/ebooks.inflibnet.ac.in\/itp15\/wp-content\/uploads\/sites\/26\/2018\/07\/Floating-300x62.png 300w, https:\/\/ebooks.inflibnet.ac.in\/itp15\/wp-content\/uploads\/sites\/26\/2018\/07\/Floating-65x13.png 65w, https:\/\/ebooks.inflibnet.ac.in\/itp15\/wp-content\/uploads\/sites\/26\/2018\/07\/Floating-225x46.png 225w\" sizes=\"auto, (max-width: 316px) 100vw, 316px\" \/><\/p>\n<p style=\"text-align: justify;\">If the number to be represented is 458.9875, it has two extra digits, for which no space is available, then there are two ways of representing it. Either chop the number and store it as 458.98, or round to the nearest digit and represent it as\u00a0<span style=\"font-size: 1em; text-align: initial;\">458.99 (rounding). Error due to rounding 458.99-458.9875 = .0025 and relative error is .0025\/458.9875 = 0.000545%<\/span><\/p>\n<div>\n<p>&nbsp;<\/p>\n<p>Now, let us take the other case:<\/p>\n<p>&nbsp;<\/p>\n<p style=\"text-align: justify;\">If the number to be represented is 5.9875, it also has two extra digits, for which no space is available; then again, there are two ways of representing it. Either chop the number and store it as 5.98, or round to the nearest digit and represent it as 5.99 (rounding).<\/p>\n<\/div>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-73 aligncenter\" src=\"http:\/\/itp15.epgpbooks.inflibnet.ac.in\/wp-content\/uploads\/sites\/26\/2018\/07\/Floating2.png\" alt=\"\" width=\"335\" height=\"88\" srcset=\"https:\/\/ebooks.inflibnet.ac.in\/itp15\/wp-content\/uploads\/sites\/26\/2018\/07\/Floating2.png 335w, https:\/\/ebooks.inflibnet.ac.in\/itp15\/wp-content\/uploads\/sites\/26\/2018\/07\/Floating2-300x79.png 300w, https:\/\/ebooks.inflibnet.ac.in\/itp15\/wp-content\/uploads\/sites\/26\/2018\/07\/Floating2-65x17.png 65w, https:\/\/ebooks.inflibnet.ac.in\/itp15\/wp-content\/uploads\/sites\/26\/2018\/07\/Floating2-225x59.png 225w\" sizes=\"auto, (max-width: 335px) 100vw, 335px\" \/><\/p>\n<p style=\"text-align: justify;\">Error due to rounding 5.99-5.9875 = .0025 and relative error is .0025\/5.9875 = 0.041754%. The point to be noted is, though rounding off error is same, but relative error has increased.<\/p>\n<p>&nbsp;<\/p>\n<p><strong>b. Normalized Floating Point Representation\u00a0<\/strong><\/p>\n<p>&nbsp;<\/p>\n<p style=\"text-align: justify;\">Normalized Floating Point Representation is designed to keep the relative errors of the same order for small and large numbers and also to be able to store higher range in the same space. We can express \u00a0562.36 as + 5.6236 * and 0.0056236 as 5.6236 *\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 \u00a0.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-72 aligncenter\" src=\"http:\/\/itp15.epgpbooks.inflibnet.ac.in\/wp-content\/uploads\/sites\/26\/2018\/07\/Floating3.png\" alt=\"\" width=\"319\" height=\"67\" srcset=\"https:\/\/ebooks.inflibnet.ac.in\/itp15\/wp-content\/uploads\/sites\/26\/2018\/07\/Floating3.png 319w, https:\/\/ebooks.inflibnet.ac.in\/itp15\/wp-content\/uploads\/sites\/26\/2018\/07\/Floating3-300x63.png 300w, https:\/\/ebooks.inflibnet.ac.in\/itp15\/wp-content\/uploads\/sites\/26\/2018\/07\/Floating3-65x14.png 65w, https:\/\/ebooks.inflibnet.ac.in\/itp15\/wp-content\/uploads\/sites\/26\/2018\/07\/Floating3-225x47.png 225w\" sizes=\"auto, (max-width: 319px) 100vw, 319px\" \/><\/p>\n<p style=\"text-align: justify;\">This is the base of Scientific notation. In this notation, exactly one non-zero digit appears before decimal point. Its advantage is, its efficiency in representing very small or very large numbers and relative error in representation of large and small numbers are of the same order.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-71 aligncenter\" src=\"http:\/\/itp15.epgpbooks.inflibnet.ac.in\/wp-content\/uploads\/sites\/26\/2018\/07\/Floating4.png\" alt=\"\" width=\"492\" height=\"94\" srcset=\"https:\/\/ebooks.inflibnet.ac.in\/itp15\/wp-content\/uploads\/sites\/26\/2018\/07\/Floating4.png 718w, https:\/\/ebooks.inflibnet.ac.in\/itp15\/wp-content\/uploads\/sites\/26\/2018\/07\/Floating4-300x57.png 300w, https:\/\/ebooks.inflibnet.ac.in\/itp15\/wp-content\/uploads\/sites\/26\/2018\/07\/Floating4-65x12.png 65w, https:\/\/ebooks.inflibnet.ac.in\/itp15\/wp-content\/uploads\/sites\/26\/2018\/07\/Floating4-225x43.png 225w, https:\/\/ebooks.inflibnet.ac.in\/itp15\/wp-content\/uploads\/sites\/26\/2018\/07\/Floating4-350x67.png 350w\" sizes=\"auto, (max-width: 492px) 100vw, 492px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p><strong><span style=\"text-align: initial; font-size: 1em;\">c.\u00a0 IEEE754 Floating-Point Standards\u00a0<\/span><\/strong><\/p>\n<p>&nbsp;<\/p>\n<p>Single Precision (32-bit representation) is as follows:<\/p>\n<p>1-bit Sign + 8-bit Exponent + 23-bit Fraction (Mantissa)<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-70 aligncenter\" src=\"http:\/\/itp15.epgpbooks.inflibnet.ac.in\/wp-content\/uploads\/sites\/26\/2018\/07\/ieee.png\" alt=\"\" width=\"502\" height=\"49\" srcset=\"https:\/\/ebooks.inflibnet.ac.in\/itp15\/wp-content\/uploads\/sites\/26\/2018\/07\/ieee.png 930w, https:\/\/ebooks.inflibnet.ac.in\/itp15\/wp-content\/uploads\/sites\/26\/2018\/07\/ieee-300x29.png 300w, https:\/\/ebooks.inflibnet.ac.in\/itp15\/wp-content\/uploads\/sites\/26\/2018\/07\/ieee-768x75.png 768w, https:\/\/ebooks.inflibnet.ac.in\/itp15\/wp-content\/uploads\/sites\/26\/2018\/07\/ieee-65x6.png 65w, https:\/\/ebooks.inflibnet.ac.in\/itp15\/wp-content\/uploads\/sites\/26\/2018\/07\/ieee-225x22.png 225w, https:\/\/ebooks.inflibnet.ac.in\/itp15\/wp-content\/uploads\/sites\/26\/2018\/07\/ieee-350x34.png 350w\" sizes=\"auto, (max-width: 502px) 100vw, 502px\" \/><\/p>\n<p>Double Precision (64-bit representation) is as follows:<\/p>\n<p>1-bit Sign + 11-bit Exponent + 52-bit Fraction<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-69 aligncenter\" src=\"http:\/\/itp15.epgpbooks.inflibnet.ac.in\/wp-content\/uploads\/sites\/26\/2018\/07\/ieee1.png\" alt=\"\" width=\"524\" height=\"39\" srcset=\"https:\/\/ebooks.inflibnet.ac.in\/itp15\/wp-content\/uploads\/sites\/26\/2018\/07\/ieee1.png 941w, https:\/\/ebooks.inflibnet.ac.in\/itp15\/wp-content\/uploads\/sites\/26\/2018\/07\/ieee1-300x22.png 300w, https:\/\/ebooks.inflibnet.ac.in\/itp15\/wp-content\/uploads\/sites\/26\/2018\/07\/ieee1-768x57.png 768w, https:\/\/ebooks.inflibnet.ac.in\/itp15\/wp-content\/uploads\/sites\/26\/2018\/07\/ieee1-65x5.png 65w, https:\/\/ebooks.inflibnet.ac.in\/itp15\/wp-content\/uploads\/sites\/26\/2018\/07\/ieee1-225x17.png 225w, https:\/\/ebooks.inflibnet.ac.in\/itp15\/wp-content\/uploads\/sites\/26\/2018\/07\/ieee1-350x26.png 350w\" sizes=\"auto, (max-width: 524px) 100vw, 524px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p><strong>6. Error Propagation<\/strong><\/p>\n<p>&nbsp;<\/p>\n<p>Every arithmetic computation in digital arithmetic leads to compounding of rounding off errors as follows:<\/p>\n<p>+\u00a0\u00a0\u00a0 \u00a0+<\/p>\n<p>R\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 \u00a0+<\/p>\n<p>Rounding off Error increase with increase in computations, the higher the number of<\/p>\n<p>steps, the more shall be the rounding error.<\/p>\n<p>&nbsp;<\/p>\n<p>For example, suppose we wish to compute: 3.578 * 2.139, using a calculator with two-digit fractions. Then<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-68 aligncenter\" src=\"http:\/\/itp15.epgpbooks.inflibnet.ac.in\/wp-content\/uploads\/sites\/26\/2018\/07\/error.png\" alt=\"\" width=\"345\" height=\"75\" srcset=\"https:\/\/ebooks.inflibnet.ac.in\/itp15\/wp-content\/uploads\/sites\/26\/2018\/07\/error.png 880w, https:\/\/ebooks.inflibnet.ac.in\/itp15\/wp-content\/uploads\/sites\/26\/2018\/07\/error-300x65.png 300w, https:\/\/ebooks.inflibnet.ac.in\/itp15\/wp-content\/uploads\/sites\/26\/2018\/07\/error-768x167.png 768w, https:\/\/ebooks.inflibnet.ac.in\/itp15\/wp-content\/uploads\/sites\/26\/2018\/07\/error-65x14.png 65w, https:\/\/ebooks.inflibnet.ac.in\/itp15\/wp-content\/uploads\/sites\/26\/2018\/07\/error-225x49.png 225w, https:\/\/ebooks.inflibnet.ac.in\/itp15\/wp-content\/uploads\/sites\/26\/2018\/07\/error-350x76.png 350w\" sizes=\"auto, (max-width: 345px) 100vw, 345px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p><strong>7.\u00a0 Total Numerical error (Computational)\u00a0<\/strong><\/p>\n<p>&nbsp;<\/p>\n<p><strong>Total Numerical Error = Truncation error + Round-off error<\/strong><\/p>\n<p>&nbsp;<\/p>\n<p style=\"text-align: justify;\">The only advisable way to reduce round-off errors is to increase number of significant digits. The round-off error increases due to either subtractive cancellation or due to increase in the number of computations in an analysis (smaller step size). The truncation errors can be reduced by decreasing step size. So, determining appropriate step size is essential in order to balance truncation and round-off errors to minimize the total error.<\/p>\n<p>&nbsp;<\/p>\n<p><strong>8. Control of Numerical errors<\/strong><\/p>\n<p>&nbsp;<\/p>\n<p style=\"text-align: justify;\">In most practical cases, we do not know the exact error associated with numerical methods. Also, there are no systematic and general approaches to evaluate numerical errors for all problems. However, there are several practical programming guidelines for controlling numerical errors.<\/p>\n<p>&nbsp;<\/p>\n<p style=\"text-align: justify;\">(i) Avoid subtracting two nearly equal numb Try\u00a0 to\u00a0 rearrange the formula if possible to avoid subtractive cancellation.<\/p>\n<p style=\"text-align: justify;\">(ii) When adding or subtracting numbers, it is best to sort the numbers and work with smallest numbers first. This avoids loss of significanc<\/p>\n<p style=\"text-align: justify;\">(iii) Attempt to predict total numerical errors by theoretical formula ti This may get quite complicated and therefore can be attempted for only small scale tasks.<\/p>\n<p style=\"text-align: justify;\">(iv) Estimate the accuracy of your results by seeing if the results obtained satisfy some condition or equation as a check.<\/p>\n<p style=\"text-align: justify;\">(v) One should be prepared to perform numerical experiments to increase one\u2019s awareness of computational errors and possible ill-conditioned problem (If the problem is ill conditioned, a small error in initial data creates large errors in the answer. So, inherent errors in ill conditioned problems can create havoc.) Such experiments may involve repeating the computation with a different step-size, or method and comparing the results.<\/p>\n<p style=\"text-align: justify;\">(vi) As learned by now, any Numerical computation is susceptible to different types of\u00a0errors. The errors may be related to required initial data. And hence it is essential to carry out sensitivity analysis for such methods. (By what amount the answer changes as a result of change in inputs). If making small changes in the input data leads to large change in the solution then such a computation is called numerically unstable. One needs to take appropriate measures to ensure that the methods that we use are relatively stable.<\/p>\n<table>\n<tbody>\n<tr>\n<td><strong>you can view video on Sources and Types of Errors<\/strong><\/td>\n<td><a href=\"https:\/\/youtu.be\/smyeAUdig30\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-120\" src=\"http:\/\/epgpbooks.inflibnet.ac.in\/wp-content\/uploads\/2018\/11\/download.png\" alt=\"\" width=\"36\" height=\"36\" \/><\/a><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p style=\"text-align: justify;\"><strong>Suggested Reading:<\/strong><\/p>\n<p>&nbsp;<\/p>\n<div>1.\u00a0Numerical Methods for Engineers by Steven C Chapra &amp; Raymond P Canale, Fifth Edition, Tata McGraw Hill Publication, Special Indian Edition.<\/div>\n<div>2. A Friendly Introduction to Numerical Analysis by Brian Bradie, Pearson<\/div>\n<div>Education.<\/div>\n<div>3. Numerical Mathematics and Computing by Ward Cheney &amp; David Kincaid, fifth Edition, Cengage Learning.<\/div>\n<div>4. Computer Oriented Numerical Methods by Dr. N Datta, Vikas Publication.<\/div>\n<div>5. Numerical Methods with Programs in C by T Veerarajan &amp; T Ramachandran, Second Edition, Tata McGraw<\/div>\n<div>Hill Publication.<\/div>\n<div>6. Numerical Methods by V. Rajaraman, Third Edition, Prentice &#8211; Hall India Pvt. Ltd.<\/div>\n<div>7. Numerical Methods with C++ Programming by RM Somasundaram &amp; RM Chandrasekaran, Prentice &#8211; Hall India Pvt. Ltd.<\/div>\n<div>8.\u00a0Applied Numerical Analysis by C F Gerald &amp; P O Wheatley, Seventh Edition, Pearson Education Asia, New Delhi.<\/div>\n<div>9.\u00a0Numerical Methods by Dr. V. N. Vedamurthy &amp; Dr. N.Ch. S.N. Iyengar, Vikas Publication.<\/div>\n<div>10. Numerical Analysis by Richard L. Burden, J. Douglas Faires, Cengage Publishcation.<\/div>\n<div>11. Numerical Methods with programs in BASIC, FORTRAN, Pascal and C++ by S. Balachandra Rao &amp; C. K. Shantha, Revised Edition, Universities Press.<\/div>\n<div>12.\u00a0A Textbook of Computer Based Numerical and Statistical Techniques by A. K. Jaiswal &amp; Anju Khandelwal, New Age International (P) Ltd, Publishers.<\/div>\n<div>13.\u00a0http:\/\/www.math.niu.edu\/~dattab\/MATH435.2013\/<\/div>\n<p>&nbsp;<\/p>\n","protected":false},"author":4,"menu_order":3,"template":"","meta":{"pb_show_title":"on","pb_short_title":"","pb_subtitle":"","pb_authors":["prof-savita-r-gandhi"],"pb_section_license":""},"chapter-type":[],"contributor":[58],"license":[],"class_list":["post-55","chapter","type-chapter","status-publish","hentry","contributor-prof-savita-r-gandhi"],"part":3,"_links":{"self":[{"href":"https:\/\/ebooks.inflibnet.ac.in\/itp15\/wp-json\/pressbooks\/v2\/chapters\/55","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ebooks.inflibnet.ac.in\/itp15\/wp-json\/pressbooks\/v2\/chapters"}],"about":[{"href":"https:\/\/ebooks.inflibnet.ac.in\/itp15\/wp-json\/wp\/v2\/types\/chapter"}],"author":[{"embeddable":true,"href":"https:\/\/ebooks.inflibnet.ac.in\/itp15\/wp-json\/wp\/v2\/users\/4"}],"version-history":[{"count":7,"href":"https:\/\/ebooks.inflibnet.ac.in\/itp15\/wp-json\/pressbooks\/v2\/chapters\/55\/revisions"}],"predecessor-version":[{"id":582,"href":"https:\/\/ebooks.inflibnet.ac.in\/itp15\/wp-json\/pressbooks\/v2\/chapters\/55\/revisions\/582"}],"part":[{"href":"https:\/\/ebooks.inflibnet.ac.in\/itp15\/wp-json\/pressbooks\/v2\/parts\/3"}],"metadata":[{"href":"https:\/\/ebooks.inflibnet.ac.in\/itp15\/wp-json\/pressbooks\/v2\/chapters\/55\/metadata\/"}],"wp:attachment":[{"href":"https:\/\/ebooks.inflibnet.ac.in\/itp15\/wp-json\/wp\/v2\/media?parent=55"}],"wp:term":[{"taxonomy":"chapter-type","embeddable":true,"href":"https:\/\/ebooks.inflibnet.ac.in\/itp15\/wp-json\/pressbooks\/v2\/chapter-type?post=55"},{"taxonomy":"contributor","embeddable":true,"href":"https:\/\/ebooks.inflibnet.ac.in\/itp15\/wp-json\/wp\/v2\/contributor?post=55"},{"taxonomy":"license","embeddable":true,"href":"https:\/\/ebooks.inflibnet.ac.in\/itp15\/wp-json\/wp\/v2\/license?post=55"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}