From b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b Mon Sep 17 00:00:00 2001 From: priyanka Date: Wed, 24 Jun 2015 15:03:17 +0530 Subject: initial commit / add all books --- 995/CH4/EX4.1/Ex4_1.sce | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100755 995/CH4/EX4.1/Ex4_1.sce (limited to '995/CH4/EX4.1/Ex4_1.sce') 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 -- cgit