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 /608/CH14/EX14.10 | |
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 '608/CH14/EX14.10')
-rwxr-xr-x | 608/CH14/EX14.10/14_10.sce | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/608/CH14/EX14.10/14_10.sce b/608/CH14/EX14.10/14_10.sce new file mode 100755 index 000000000..6c54ef3c2 --- /dev/null +++ b/608/CH14/EX14.10/14_10.sce @@ -0,0 +1,24 @@ +//Problem 14.10: An alternating voltage is given by v = 75sin(200*pi*t -0.25) volts. Find (a) the amplitude, (b) the peak-to-peak value, (c) the rms value, (d) the periodic time, (e) the frequency, and (f) the phase angle (in degrees and minutes) relative to 75 sin 200t
+
+//initializing the variables:
+Vmax = 75; // in Volts
+w = 200*%pi; // in rad/sec
+t = 0.004; // in sec
+phi = 0.25; // in radians
+
+//calculation:
+//for a sine wave
+Vptp = 2*Vmax
+Vrms = 0.707*Vmax
+f = w/(2*%pi)
+T = 1/f
+v = Vmax*sin(w*t)
+phid = phi*180/%pi
+
+printf("\n\n Result \n\n")
+printf("\n (a) Amplitude, or peak value = %.0f V",Vmax)
+printf("\n (b) Peak-to-peak value = %.0f V",Vptp)
+printf("\n (c)rms value = %.0f V",Vrms)
+printf("\n (d)periodic time, T = %.2f sec",T)
+printf("\n (e)frequency f = %.0f Hz",f)
+printf("\n (f)phase angle = %.2f°",phid)
\ No newline at end of file |