From b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b Mon Sep 17 00:00:00 2001 From: priyanka Date: Wed, 24 Jun 2015 15:03:17 +0530 Subject: initial commit / add all books --- 608/CH15/EX15.24/15_24.sce | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100755 608/CH15/EX15.24/15_24.sce (limited to '608/CH15/EX15.24/15_24.sce') diff --git a/608/CH15/EX15.24/15_24.sce b/608/CH15/EX15.24/15_24.sce new file mode 100755 index 000000000..33dc7f33a --- /dev/null +++ b/608/CH15/EX15.24/15_24.sce @@ -0,0 +1,12 @@ +//Problem 15.24: An instantaneous current, i = 250 sin w t mA flows through a pure resistance of 5 kohm. Find the power dissipated in the resistor. + +//initializing the variables: +R = 5000; // in ohms +Imax = 0.250; // in Amperes + +//calculation: +Irms = 0.707*Imax +P = Irms*Irms*R + +printf("\n\n Result \n\n") +printf("\n Power, P = %.1f Watts",P) \ No newline at end of file -- cgit