summaryrefslogtreecommitdiff
path: root/2672/CH1/EX1.4/Ex1_4.sce
blob: 0c9c6d4536857ae0e2219e33c4cd54cfc183c0ec (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
//Example 1_4
clc;
clear;
close;
format('v',6);
//given data : 
Vs=6;//V
//Point A & C, B & D are shorted
RAB=(4*4/(4+4));//ohm
RDC=(4*4/(4+4));//ohm
Req=RAB*RDC/(RAB+RDC);//ohm
Is=Vs/Req;//A
disp(Is,"Current supplied by the battery(A)");