summaryrefslogtreecommitdiff
path: root/45/CH12/EX12.6/example_12_6.sce
diff options
context:
space:
mode:
Diffstat (limited to '45/CH12/EX12.6/example_12_6.sce')
-rwxr-xr-x45/CH12/EX12.6/example_12_6.sce13
1 files changed, 13 insertions, 0 deletions
diff --git a/45/CH12/EX12.6/example_12_6.sce b/45/CH12/EX12.6/example_12_6.sce
new file mode 100755
index 000000000..a7606bb04
--- /dev/null
+++ b/45/CH12/EX12.6/example_12_6.sce
@@ -0,0 +1,13 @@
+//Example 12.6
+clc;
+clear;
+I=10/(3*10^3);
+printf("Current each input digital voltage must be capable of supplying is =%f mA\n",I*1000)
+ful_scale_voltage = 0 ;
+for i=1:5
+ op_v(1,i)= 10/2^i;
+ ful_scale_voltage = ful_scale_voltage + op_v(1,i);
+end
+V_A=ful_scale_voltage * (2*1000)/(1000+(2*1000));
+printf("\n Output voltage Va = %f V",V_A);
+ \ No newline at end of file