blob: d6429f49dfeb5417076d77dd6fc8f695caf87be2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
// Example No.6.12.
// Page No.190.
//To find the lengths of the intercepts.
clc;clear;
a = 0.8;
b = 1.2;
c = 1.5;
disp('Ratio of the intercepts are as follows : ');
disp('I1:I2:I3 = a:b/2:c/3');
I1 = 0.8;
disp('0.8:I2:I3 = a:b/2:c/3');
disp('By substituting values');
I2=(1.2/2);
printf("\nI2 = %.1f A",I2);
I3=(1.5/3);
printf("\nI3 = %.1f A",I3);
//As there are no numerical steps and hence the display statement has been typed directly.
|