summaryrefslogtreecommitdiff
path: root/2672/CH3/EX3.3/Ex3_3.sce
diff options
context:
space:
mode:
Diffstat (limited to '2672/CH3/EX3.3/Ex3_3.sce')
-rwxr-xr-x2672/CH3/EX3.3/Ex3_3.sce15
1 files changed, 15 insertions, 0 deletions
diff --git a/2672/CH3/EX3.3/Ex3_3.sce b/2672/CH3/EX3.3/Ex3_3.sce
new file mode 100755
index 000000000..010f03780
--- /dev/null
+++ b/2672/CH3/EX3.3/Ex3_3.sce
@@ -0,0 +1,15 @@
+//Example 3_3
+clc;
+clear;
+close;
+format('v',5);
+//given data :
+v=10;//V
+T=0.2;//second
+Vav=1/T*integrate('1*v','t',0,T/2);//V
+Vrms=sqrt(1/T*integrate('v^2','t',0,T/2));//V
+disp(Vrms,"rms value of Voltage (V)");
+disp(Vav,"Average value of Voltage (V)");
+Kf=Vrms/Vav;//Form Factor
+disp(Kf,"Form Factor")
+//Answer is not accurate in the book.