summaryrefslogtreecommitdiff
path: root/995/CH4/EX4.1/Ex4_1.sce
diff options
context:
space:
mode:
Diffstat (limited to '995/CH4/EX4.1/Ex4_1.sce')
-rwxr-xr-x995/CH4/EX4.1/Ex4_1.sce12
1 files changed, 12 insertions, 0 deletions
diff --git a/995/CH4/EX4.1/Ex4_1.sce b/995/CH4/EX4.1/Ex4_1.sce
new file mode 100755
index 000000000..9948ba2c1
--- /dev/null
+++ b/995/CH4/EX4.1/Ex4_1.sce
@@ -0,0 +1,12 @@
+//Ex:4.1
+clc;
+clear;
+close;
+V_m=20;//in volts
+f=50;//in Hz
+t1=2.5*10^-3;
+t2=15*10^-3;
+V1=V_m*sin(2*%pi*f*t1);
+V2=V_m*sin(2*%pi*f*t2);
+printf("Voltage at 2.5ms = %f V",V1);
+printf("\n Voltage at 15ms = %f V",V2); \ No newline at end of file