diff options
Diffstat (limited to '3754/CH3/EX3.23')
-rw-r--r-- | 3754/CH3/EX3.23/3_23.sce | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/3754/CH3/EX3.23/3_23.sce b/3754/CH3/EX3.23/3_23.sce new file mode 100644 index 000000000..73903f1d6 --- /dev/null +++ b/3754/CH3/EX3.23/3_23.sce @@ -0,0 +1,14 @@ +clear//
+
+//Variables
+
+V = 7 * 2 //Voltage : 7 div * (2 V/div) (in volts)
+I = 5 * 5 * 10**-3 //Current : 5 div * (5 * 10**-3) (in Ampere)
+
+//Calculation
+
+R = V/I //Resistance (in ohm)
+
+//Result
+
+printf("\n The value of resistance is %0.3f ohm.",R)
|