summaryrefslogtreecommitdiff
path: root/2075/CH7/EX7.1/pe7_1.sce
diff options
context:
space:
mode:
Diffstat (limited to '2075/CH7/EX7.1/pe7_1.sce')
-rwxr-xr-x2075/CH7/EX7.1/pe7_1.sce12
1 files changed, 12 insertions, 0 deletions
diff --git a/2075/CH7/EX7.1/pe7_1.sce b/2075/CH7/EX7.1/pe7_1.sce
new file mode 100755
index 000000000..6ab923ef3
--- /dev/null
+++ b/2075/CH7/EX7.1/pe7_1.sce
@@ -0,0 +1,12 @@
+//example 7.1
+clc; funcprot(0);
+// Initialization of Variable
+T=20;//time
+Vp=12;//voltage
+t=5;
+//calculation
+D=t/T;
+disp(D,"duty cycle:")
+Vd=(D*Vp);
+disp(Vd,"average voltage in V:")
+clear()