chriscarson said:
I mean I am asking if it is that what I am doing wrong. If it is because I am using only till 3.142 than 6 significant figures.
When in doubt, check it out.
Let us make three attempts at the calculation. One using the truncated figure for ##\pi##, one using a value of pi that is good for six figures and one using a value that is good for as much as Windows calculator will do.
##\pi## is approximately 3.141_592_653_589_793_238_462_6. Usually, people remember it to three digits (3.14) because the next digit is a one and it's a no brainer to round 3.141 down to 3.14. Often people remember it to 5 digits (3.1416) because the next digit is a nine and it's a no brainer to round 3.14159 up to 3.1416. However, you have chosen to remember it to 4 digits (3.142), rounding 3.1415 up to 3.142. That's a remarkably poor place to truncate the decimal expansion since it was nearly a 50/50 choice to round up or down, given that the first truncated digit was a five.
On to the checking out part...
Four digit calculation: 3.142 x 0.025
2: Calculator says 0.00196375. Rounded to six significant figures, that is still 0.001963
75. Rounded to two significant figures, it is 0.0020.
Six digit calculation: 3.14159 x 0.025
2: Calculator says 0.00196349375. Rounded to six significant figures, that is 0.001963
49. Rounded to two significant figures, it is 0.0020.
My windows calculator limit: 3.1415926535897932384626433832795 x 0.025
2: Calculator says 0.00196349540849362077403915211455. Rounded to six significant figures, that is 0.001963
50. Rounded to two significant figures, it is 0.0020.
Note how the last two digits in the six figure result changed depending on the accuracy of the figure used for pi. Note how the last digit in the six figure result was incorrect even though the calculation used a value for pi that was good to six digits.
1. If you are going to use a defined constant, use it with all available precision.
2. If you are going to compute an intermediate result, use all available precision.
3. When you report a final result, round it to the appropriate number of significant figures. In this case, with inputs good to two significant figures, the result should have been reported to two digits or certainly no more than three.
These rules of thumb will get you through at least freshman physics. Real numerical analysis and error analysis goes way deeper.