diff options
Diffstat (limited to '569/CH3/EX3.8/3_8.sci')
-rwxr-xr-x | 569/CH3/EX3.8/3_8.sci | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/569/CH3/EX3.8/3_8.sci b/569/CH3/EX3.8/3_8.sci new file mode 100755 index 000000000..491ac18c2 --- /dev/null +++ b/569/CH3/EX3.8/3_8.sci @@ -0,0 +1,19 @@ +// Calculate the guaranteed values of the resistance
+clc;
+R1=100;
+R1_le_perunit=0.5; // R1_le_perunit indicates dR1/R1 = 0.5%
+R2=1000;
+R2_le_perunit=0.5;
+R3=842;
+R3_le_perunit=0.5;
+Rx=R2*R3/R1;
+disp(Rx,'Value of resistance (ohm)=')
+Rx_le_perunit=R1_le_perunit+R2_le_perunit+R3_le_perunit;
+
+disp(Rx_le_perunit,'Limiting Value of resistance per unit (dRx/Rx)=')
+Er_Le=Rx_le_perunit*Rx/100;
+disp(Er_Le,'Limiting Value of resistance (ohm)=+/-')
+disp('Guarantee value of the resistance (ohm)=')
+G1=Rx+Er_Le;
+G2=Rx-Er_Le;
+disp(G1,G2,'')
\ No newline at end of file |