summaryrefslogtreecommitdiff
path: root/3637/CH4/EX4.19/Ex4_19.sce
diff options
context:
space:
mode:
Diffstat (limited to '3637/CH4/EX4.19/Ex4_19.sce')
-rw-r--r--3637/CH4/EX4.19/Ex4_19.sce15
1 files changed, 15 insertions, 0 deletions
diff --git a/3637/CH4/EX4.19/Ex4_19.sce b/3637/CH4/EX4.19/Ex4_19.sce
new file mode 100644
index 000000000..1d8fc950b
--- /dev/null
+++ b/3637/CH4/EX4.19/Ex4_19.sce
@@ -0,0 +1,15 @@
+//problem 19 pagenumber 4.45
+//given
+n=8;format(6);
+vref=10;//volt
+vmin=vref/2^n;
+D=133;
+disp('Minimum input voltage = '+string(vmin*1e3)+' milivolt');
+vif=vref-vmin;
+disp('Input voltage make 1s = '+string(vif)+' volt');
+vin=5.2;
+format(3);z=dec2base(D,2);format(6);
+disp('Decimal at '+string(vin)+' volt = '+string(D));//no unit
+
+
+