summaryrefslogtreecommitdiff
path: root/3809/CH1/EX1.4/EX1_4.sce
diff options
context:
space:
mode:
Diffstat (limited to '3809/CH1/EX1.4/EX1_4.sce')
-rw-r--r--3809/CH1/EX1.4/EX1_4.sce14
1 files changed, 14 insertions, 0 deletions
diff --git a/3809/CH1/EX1.4/EX1_4.sce b/3809/CH1/EX1.4/EX1_4.sce
new file mode 100644
index 000000000..ee3d0837d
--- /dev/null
+++ b/3809/CH1/EX1.4/EX1_4.sce
@@ -0,0 +1,14 @@
+//Chapter 1, Example 1.4
+
+clc
+//Initialisation
+r=50 //resistance in ohm
+i=3 //current in ampere
+
+
+
+//Calculation
+p=i^2*r //Power in watts
+
+//Results
+printf("Power P = %.1f Watt",p)