summaryrefslogtreecommitdiff
path: root/3754/CH27/EX27.14/27_14.sce
diff options
context:
space:
mode:
Diffstat (limited to '3754/CH27/EX27.14/27_14.sce')
-rw-r--r--3754/CH27/EX27.14/27_14.sce14
1 files changed, 14 insertions, 0 deletions
diff --git a/3754/CH27/EX27.14/27_14.sce b/3754/CH27/EX27.14/27_14.sce
new file mode 100644
index 000000000..deabf0934
--- /dev/null
+++ b/3754/CH27/EX27.14/27_14.sce
@@ -0,0 +1,14 @@
+clear//
+
+//Variables
+
+RL = 8.0 //Load resistance (in ohm)
+VP = 16.0 //Peak output voltage (in volts)
+
+//Calculation
+
+P = VP**2 / (2 * RL) //Power drawn from the source (in watt)
+
+//Result
+
+printf("\n The power drawn from the source is %0.3f W.",P)