diff options
Diffstat (limited to '1319/CH12/EX12.8/i_8.sce')
-rw-r--r-- | 1319/CH12/EX12.8/i_8.sce | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/1319/CH12/EX12.8/i_8.sce b/1319/CH12/EX12.8/i_8.sce new file mode 100644 index 000000000..13dc21584 --- /dev/null +++ b/1319/CH12/EX12.8/i_8.sce @@ -0,0 +1,17 @@ +//To calculate current ratings and maximum voltage of a rated resistor.
+
+clc;
+clear;
+
+P=1;
+R=10*(10^3);
+
+// Using Power Equation and Ohm's Law.
+
+V=sqrt(P*R);
+
+I=sqrt(P/R);
+
+disp('volts',V,'The Maximum voltage of the resistor =')
+
+disp('amperes',I,'The Current rating of the resistor =')
|