summaryrefslogtreecommitdiff
path: root/1445/CH1/EX1.45/Ex1_45.sce
diff options
context:
space:
mode:
Diffstat (limited to '1445/CH1/EX1.45/Ex1_45.sce')
-rw-r--r--1445/CH1/EX1.45/Ex1_45.sce15
1 files changed, 15 insertions, 0 deletions
diff --git a/1445/CH1/EX1.45/Ex1_45.sce b/1445/CH1/EX1.45/Ex1_45.sce
new file mode 100644
index 000000000..361cfdda5
--- /dev/null
+++ b/1445/CH1/EX1.45/Ex1_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
+w=5*1000; //power consumed by coil in Watts
+v=200; //applied voltage in Volts
+
+//SOLUTION
+r=(v^2)/w; //since w=(v^2)/r
+disp(sprintf("Value of resistance is %d Ω",r));
+
+//END