blob: 958bcd2d016e6f7ea1b9f9ab7bec5594441f44d5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
//Example 1_2 page no:21
clc;
I8=20/8;
I15=(2.5*11)/(11+28);
V28=0.71*28;
V19=2.5*19;
emf=V28+V19;//calculating the emf
disp(I8,"the current flowing through 8 ohm resistor is (in A)");
disp(I15,"the current flowing through 15 ohm resistor is (in A)");
disp(V28,"the voltage across 28 ohm resistor is (in V)");
disp(V19,"the voltage across 19 ohm resistor is (in V)");
disp(emf,"the emf of the battery is (in V)");
|