summaryrefslogtreecommitdiff
path: root/1319/CH1/EX1.29
diff options
context:
space:
mode:
authorprashantsinalkar2017-10-10 12:27:19 +0530
committerprashantsinalkar2017-10-10 12:27:19 +0530
commit7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 (patch)
treedbb9e3ddb5fc829e7c5c7e6be99b2c4ba356132c /1319/CH1/EX1.29
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 '1319/CH1/EX1.29')
-rw-r--r--1319/CH1/EX1.29/1_29.sce20
1 files changed, 20 insertions, 0 deletions
diff --git a/1319/CH1/EX1.29/1_29.sce b/1319/CH1/EX1.29/1_29.sce
new file mode 100644
index 000000000..afb594f84
--- /dev/null
+++ b/1319/CH1/EX1.29/1_29.sce
@@ -0,0 +1,20 @@
+// To determine the parameters of an alternating current of 50Hz frequency
+
+clc;
+clear;
+
+f=50;
+Im=20;
+w=2*%pi*f;
+t=1/100;
+It=10;
+Irms=Im/(sqrt(2));
+Iav=0;//Full Cycle
+t10=asin(It/Im)/w;// time taken to rach 10A
+
+Ih=Im*sin(w*t);// Current at 1/100 sec
+
+printf('i) The general ecpression is i(t) = %g sin %gt\n',Im,w)
+printf('ii) The instantaneous value at t= 1/100 sec is %g A\n',floor(Ih*10)/10)
+printf('iii) The time taken to reach 10A for the first time = %g s\n',t10)
+printf('iv) The average and the rms value of current is %g A and %g A respectively\n',Iav,Irms)