From 7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 Mon Sep 17 00:00:00 2001 From: prashantsinalkar Date: Tue, 10 Oct 2017 12:27:19 +0530 Subject: initial commit / add all books --- 911/CH10/EX10.3/ex_10_3.sce | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 911/CH10/EX10.3/ex_10_3.sce (limited to '911/CH10/EX10.3/ex_10_3.sce') diff --git a/911/CH10/EX10.3/ex_10_3.sce b/911/CH10/EX10.3/ex_10_3.sce new file mode 100644 index 000000000..7283ae102 --- /dev/null +++ b/911/CH10/EX10.3/ex_10_3.sce @@ -0,0 +1,23 @@ +//example 10.3// +clc +//clears the screen// +clear +//clears all variables// +f=5/1000; +//full scale output in Amperes// +g=2^8; +//random value for use// +s=f/(g-1); +//step size = full scale output/ number of steps// +d=bin2dec('10000010') +//binary to decimal conversion// +ao=d*s; +//analog output of system// +e=.25*f/100; +//error =+-e// +r0=(ao-e)*1000; +//lower range of analog output// +r1=(ao+e)*1000; +//upper range of analog output// +disp(r0, 'lower range of analog output (in mA) is ='); +disp(r1, 'upper range of analog output (in mA) is = '); \ No newline at end of file -- cgit