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 --- 848/CH1/EX1.1/Example1_1.sce | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100755 848/CH1/EX1.1/Example1_1.sce (limited to '848/CH1/EX1.1') diff --git a/848/CH1/EX1.1/Example1_1.sce b/848/CH1/EX1.1/Example1_1.sce new file mode 100755 index 000000000..c89c27183 --- /dev/null +++ b/848/CH1/EX1.1/Example1_1.sce @@ -0,0 +1,26 @@ +//clear// +//Caption:Program to calculate time period and phase shift +//Example1.1 +//Page 8 +clear; +clc; +close; +f1 = 10^5; //f1 = 100KHz +f2 = 10^9; //f2 = 1GHz +T1 = 1/f1; +T2 = 1/f2; +phi = (1/4)*360; +phi_rad = phi/57.3; +disp(T1,'Time period of sine wave with frequency = 100 KHZ') +disp(T2,'Time period of sine wave with frequency = 1GHZ') +disp(phi,'phase shift in degrees'); +disp(phi_rad,'phase shift in radians'); +//Result +//Time period of sine wave with frequency = 100 KHZ +// 0.00001 +//Time period of sine wave with frequency = 1GHZ +// 1.000D-09 +//phase shift in degrees +// 90. +//phase shift in radians +// 1.5706806 -- cgit