summaryrefslogtreecommitdiff
path: root/45/CH12/EX12.11/example_12_11.sce
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /45/CH12/EX12.11/example_12_11.sce
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 '45/CH12/EX12.11/example_12_11.sce')
-rwxr-xr-x45/CH12/EX12.11/example_12_11.sce17
1 files changed, 17 insertions, 0 deletions
diff --git a/45/CH12/EX12.11/example_12_11.sce b/45/CH12/EX12.11/example_12_11.sce
new file mode 100755
index 000000000..cdfce25f9
--- /dev/null
+++ b/45/CH12/EX12.11/example_12_11.sce
@@ -0,0 +1,17 @@
+//Example 12.11
+clc;
+clear;
+//bit = input("Specify the converter bit length :")
+//fre = input("specify the clock frequency in kHz :")
+bit =8;
+fre = 500
+max_conv_time = 2^bit * (1/(fre*1000));
+avg_conv_time = 0.5 *max_conv_time;
+max_conv_rate = 1/max_conv_time;
+disp("Maximum Conversion Time = ");
+disp(max_conv_time);
+disp("Average Conversion Time =");
+disp(avg_conv_time);
+disp("Maximum Conversion Rate =");
+disp(max_conv_rate);
+