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.09 | |
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.09')
-rwxr-xr-x | 608/CH14/EX14.09/14_09.sce | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/608/CH14/EX14.09/14_09.sce b/608/CH14/EX14.09/14_09.sce new file mode 100755 index 000000000..19fb0ab28 --- /dev/null +++ b/608/CH14/EX14.09/14_09.sce @@ -0,0 +1,17 @@ +//Problem 14.09: An alternating voltage is given by v = 282.8 sin 314t volts. Find (a) the rms voltage, (b) the frequency and (c) the instantaneous value of voltage when t = 4 ms
+
+//initializing the variables:
+Vmax = 282.8; // in Volts
+w = 314; // in rad/sec
+t = 0.004; // in sec
+
+//calculation:
+//for a sine wave
+Vrms = 0.707*Vmax
+f = w/(2*%pi)
+v = Vmax*sin(w*t)
+
+printf("\n\n Result \n\n")
+printf("\n (a)rms value = %.0f V",Vrms)
+printf("\n (b)frequency f = %.0f Hz",f)
+printf("\n (c)instantaneous value of voltage at 4 ms = %.1f V",v)
\ No newline at end of file |