diff options
Diffstat (limited to '1445/CH1/EX1.45/ch1_ex_45.sce')
-rw-r--r-- | 1445/CH1/EX1.45/ch1_ex_45.sce | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/1445/CH1/EX1.45/ch1_ex_45.sce b/1445/CH1/EX1.45/ch1_ex_45.sce new file mode 100644 index 000000000..ed9fa8ab8 --- /dev/null +++ b/1445/CH1/EX1.45/ch1_ex_45.sce @@ -0,0 +1,15 @@ +//CHAPTER 1- D.C. CIRCUIT ANALYSIS AND NETWORK THEOREMS +//Example 45 + +disp("CHAPTER 1"); +disp("EXAMPLE 45"); + +//VARIABLE INITIALIZATION +p=5*1000; //in Watts +v=200; //in Volts + +//SOLUTION +r=(v^2)/p; +disp(sprintf("Value of resistance is %d Ω",r)); + +//END |