diff options
Diffstat (limited to '569/CH6/EX6.31/6_31.sci')
-rwxr-xr-x | 569/CH6/EX6.31/6_31.sci | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/569/CH6/EX6.31/6_31.sci b/569/CH6/EX6.31/6_31.sci new file mode 100755 index 000000000..e5b69f53c --- /dev/null +++ b/569/CH6/EX6.31/6_31.sci @@ -0,0 +1,9 @@ +// Calculating the value of resistance and smallest output current
+clc;
+ER=10;
+n=6;
+Imax=10*10^-3;
+R=ER*((2^n)-1)/[(2^(n-2))*Imax];
+disp(R,'resistance (ohm)=')
+LSB=ER/[(2^(n-1))*R];
+disp(LSB,'smallest output current (A)')
|