summaryrefslogtreecommitdiff
path: root/1529/CH10/EX10.7
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /1529/CH10/EX10.7
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 '1529/CH10/EX10.7')
-rwxr-xr-x1529/CH10/EX10.7/10_07.sce15
1 files changed, 15 insertions, 0 deletions
diff --git a/1529/CH10/EX10.7/10_07.sce b/1529/CH10/EX10.7/10_07.sce
new file mode 100755
index 000000000..7e83c4149
--- /dev/null
+++ b/1529/CH10/EX10.7/10_07.sce
@@ -0,0 +1,15 @@
+//Chapter 10, Problem 7, figure 10.17
+clc;
+tc = 100e-6; // in s/cm
+Vc = 20; // in V/cm
+w = 5.2; // in cm ( width of one complete cycle )
+h = 3.6; // in cm ( peak-to-peak height of the display )
+
+//calculation:
+T = w*tc
+f = 1/T
+ptpv = h*Vc
+
+printf("\n (a)The periodic time, T = %.2f ms\n", T*10^3)
+printf("\n (b)Frequency, f = %.2f kHz\n",f/1000)
+printf("\n (c)The peak-to-peak voltage = %.0f V\n",ptpv)