diff options
Diffstat (limited to '1529/CH10/EX10.7')
-rwxr-xr-x | 1529/CH10/EX10.7/10_07.sce | 15 |
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)
|