summaryrefslogtreecommitdiff
path: root/848/CH1/EX1.1
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /848/CH1/EX1.1
downloadScilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip
initial commit / add all books
Diffstat (limited to '848/CH1/EX1.1')
-rwxr-xr-x848/CH1/EX1.1/Example1_1.sce26
1 files changed, 26 insertions, 0 deletions
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