blob: 769ee17d8b880585daa2d178aba278b4783d3182 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
clear ;
clc;
// Example 1.8
printf('Example 1.8\n\n');
// Page no. 28
// Solution
// Using Scientifc notation
x = 2.24 * 10^4 ; //[kg]
y = 2.01 * 10^4 ;//[kg]
D = x - y ;// Difference obtained by using scientific notation //[kg]
printf(' Difference obtained by using scientific notation is %.4e kg.\n Hence answer is good to 2 decimal places. \n',D);
|