summaryrefslogtreecommitdiff
path: root/3835/CH4/EX4.6/Ex4_6.sce
diff options
context:
space:
mode:
authorprashantsinalkar2017-10-10 12:27:19 +0530
committerprashantsinalkar2017-10-10 12:27:19 +0530
commit7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 (patch)
treedbb9e3ddb5fc829e7c5c7e6be99b2c4ba356132c /3835/CH4/EX4.6/Ex4_6.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 '3835/CH4/EX4.6/Ex4_6.sce')
-rw-r--r--3835/CH4/EX4.6/Ex4_6.sce23
1 files changed, 23 insertions, 0 deletions
diff --git a/3835/CH4/EX4.6/Ex4_6.sce b/3835/CH4/EX4.6/Ex4_6.sce
new file mode 100644
index 000000000..6ffd7a5e5
--- /dev/null
+++ b/3835/CH4/EX4.6/Ex4_6.sce
@@ -0,0 +1,23 @@
+clear
+//
+//from graph
+a=0
+b=5**2
+c=10**2
+c=20**2
+d=40**2
+e=50**2
+f=40**2
+g=20**2
+h=10**2
+i=5**2
+v=(0.1*(a+b+c+d+e+f+g+h+i))**0.5 //%pi and omega values get cancelled
+printf("\n v= %0.1f V",v)
+vavg=0.1*(0+5+10+20+40+50+40+20+10+5)
+printf("\n vavg= %0.1f v",vavg)
+ff=v/(vavg)
+printf("\n %0.1f",ff)
+pf=50/(v) //50 is the maximum value
+printf("\n %0.1f",pf)
+v=0.707*50
+printf("\n rms value for a sin wave with the same peak value is= %0.1f V",v)