diff options
author | priyanka | 2015-06-24 15:03:17 +0530 |
---|---|---|
committer | priyanka | 2015-06-24 15:03:17 +0530 |
commit | b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch) | |
tree | ab291cffc65280e58ac82470ba63fbcca7805165 /2252/CH6/EX6.5 | |
download | Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2 Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip |
initial commit / add all books
Diffstat (limited to '2252/CH6/EX6.5')
-rwxr-xr-x | 2252/CH6/EX6.5/Ex6_5.sce | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/2252/CH6/EX6.5/Ex6_5.sce b/2252/CH6/EX6.5/Ex6_5.sce new file mode 100755 index 000000000..89fde7293 --- /dev/null +++ b/2252/CH6/EX6.5/Ex6_5.sce @@ -0,0 +1,16 @@ +
+
+//calculating greatest rate of change of current
+//i=50*sin(100*%pi*t)
+mprintf("Greatest rate of change of current=%f A/sec\n",50*100*%pi)
+//calculating average value of current
+f=50//frequency of the wave
+T=1/f
+Imean=1/.01*integrate("50*sin(100*%pi*t)","t",0,T/2)
+mprintf("Average value of the given current=%f A\n",Imean)
+Irms=sqrt(integrate("(50*sin(theta))^2","theta",0,2*%pi)/(2*%pi))
+mprintf("RMS value of current=%f A\n",Irms)
+//calculating time interval between a maximum value and next zero value
+t=(%pi/2)/(100*%pi)
+mprintf("Time interval between a maximum value and the next zero value is %f sec to %f sec",t,2*t)
+//value of greatest rate of change of current is given wrong in the textbook due to approximation
|