summaryrefslogtreecommitdiff
path: root/3845/CH23/EX23.5/Ex23_5.sce
diff options
context:
space:
mode:
authorprashantsinalkar2017-10-10 12:27:19 +0530
committerprashantsinalkar2017-10-10 12:27:19 +0530
commit7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 (patch)
treedbb9e3ddb5fc829e7c5c7e6be99b2c4ba356132c /3845/CH23/EX23.5/Ex23_5.sce
parentb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (diff)
downloadScilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.gz
Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.bz2
Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.zip
initial commit / add all books
Diffstat (limited to '3845/CH23/EX23.5/Ex23_5.sce')
-rw-r--r--3845/CH23/EX23.5/Ex23_5.sce21
1 files changed, 21 insertions, 0 deletions
diff --git a/3845/CH23/EX23.5/Ex23_5.sce b/3845/CH23/EX23.5/Ex23_5.sce
new file mode 100644
index 000000000..1b5052ca8
--- /dev/null
+++ b/3845/CH23/EX23.5/Ex23_5.sce
@@ -0,0 +1,21 @@
+//Example 23.5
+Np=50;//Number of loops in the primary
+Vp=120;//Primary voltage (V)
+Vs=100*10^3;//Secondary voltage (V)
+Ns=Np*Vs/Vp;//Number of loops in the secondary
+printf('a.Number of loops in the secondary coil = %0.2e',Ns)
+Ip=10;//Current in the primary coil (A)
+Is=Ip*Np/Ns;//Current in the secondary coil (A)
+printf('\nb.Current in the secondary coil = %0.1f mA',Is*1000)
+printf('\n\nDiscussion for (b):')
+Pp=Ip*Vp;//Power input (W)
+printf('\nPower input = %0.2f kW',Pp/1000)
+Ps=Is*Vs;//Power output (W)
+printf('\nPower output = %0.2f kW',Ps/1000)
+if Ps==Pp
+ printf('\nPower output is equal to power input')
+else
+ printf('\nPower output is not equal to power input')
+end
+//Openstax - College Physics
+//Download for free at http://cnx.org/content/col11406/latest