From 7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 Mon Sep 17 00:00:00 2001 From: prashantsinalkar Date: Tue, 10 Oct 2017 12:27:19 +0530 Subject: initial commit / add all books --- 3769/CH12/EX12.20/Ex12_20.sce | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 3769/CH12/EX12.20/Ex12_20.sce (limited to '3769/CH12/EX12.20') diff --git a/3769/CH12/EX12.20/Ex12_20.sce b/3769/CH12/EX12.20/Ex12_20.sce new file mode 100644 index 000000000..4ddab89eb --- /dev/null +++ b/3769/CH12/EX12.20/Ex12_20.sce @@ -0,0 +1,16 @@ +clear +//Given +E=12 +R=30.0 //ohm +L=0.22 + +//Calculation +I0=E/R +I=I0/2.0 +P=E*I +dl=(E-(I*R))/L +du=L*I*dl + +//Result +printf("\n (i) Energy being delivered by the battery is %0.3f W", P) +printf("\n (ii) ENergy being stored in the magnetic field of inductor is %0.3f W",du) -- cgit