diff options
Diffstat (limited to '3754/CH5/EX5.2/5_2.sce')
-rw-r--r-- | 3754/CH5/EX5.2/5_2.sce | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/3754/CH5/EX5.2/5_2.sce b/3754/CH5/EX5.2/5_2.sce new file mode 100644 index 000000000..102a97870 --- /dev/null +++ b/3754/CH5/EX5.2/5_2.sce @@ -0,0 +1,16 @@ +clear//
+
+//Variables
+
+I = 1 //Current (in Ampere)
+
+//Calculation
+
+//Applying Kirchoff's voltage law:
+//(1 *3) + (1 * R) + (1 * 4) - 12 =0
+
+R = 5 //Resistance (in ohm)
+
+//Result
+
+printf("\n Value of R is %0.3f ohm.",R)
|