summaryrefslogtreecommitdiff
path: root/2642/CH1/EX1.2
diff options
context:
space:
mode:
Diffstat (limited to '2642/CH1/EX1.2')
-rwxr-xr-x2642/CH1/EX1.2/Ex1_2.sce20
1 files changed, 20 insertions, 0 deletions
diff --git a/2642/CH1/EX1.2/Ex1_2.sce b/2642/CH1/EX1.2/Ex1_2.sce
new file mode 100755
index 000000000..d9ca65be7
--- /dev/null
+++ b/2642/CH1/EX1.2/Ex1_2.sce
@@ -0,0 +1,20 @@
+// FUNDAMENTALS OF ELECTICAL MACHINES
+// M.A.SALAM
+// NAROSA PUBLISHING HOUSE
+// SECOND EDITION
+
+// Chapter 1 : REVIEW OF ELECRTIC CIRCUITS
+// Example : 1.2
+
+clc;clear; // clears the console and command history
+
+// Given data
+V = -24 // voltage in V
+I = 3 // current in A
+
+// caclulations
+ P = V*I // power for the element A in network in W
+
+// display the result
+disp("Example 1.2 solution");
+printf(" \n Power for the element A in network \n P = %.0f W ", P);