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 --- 620/CH15/EX15.4/example15_4.sce | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 620/CH15/EX15.4/example15_4.sce (limited to '620/CH15/EX15.4/example15_4.sce') diff --git a/620/CH15/EX15.4/example15_4.sce b/620/CH15/EX15.4/example15_4.sce new file mode 100644 index 000000000..3747dcd46 --- /dev/null +++ b/620/CH15/EX15.4/example15_4.sce @@ -0,0 +1,13 @@ +r=25; +vm=50; +w=800*%pi; +disp("Part a"); +im=vm/r; +pm=im^2*r; +disp("Peak power dissipated (in W) in the resistoris"); disp(pm); +disp("Part b"); +f=w/(2*%pi); +disp("the frequency (in Hz) of power variation is"); disp(2*f); +disp("Part c"); +pavg=pm/2; +disp("the average power (in W) dissipated in the resistor is"); disp(pavg); \ No newline at end of file -- cgit