summaryrefslogtreecommitdiff
path: root/608/CH15/EX15.24/15_24.sce
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /608/CH15/EX15.24/15_24.sce
downloadScilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip
initial commit / add all books
Diffstat (limited to '608/CH15/EX15.24/15_24.sce')
-rwxr-xr-x608/CH15/EX15.24/15_24.sce12
1 files changed, 12 insertions, 0 deletions
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