summaryrefslogtreecommitdiff
path: root/2075/CH5/EX5.6
diff options
context:
space:
mode:
Diffstat (limited to '2075/CH5/EX5.6')
-rwxr-xr-x2075/CH5/EX5.6/pe5_6.sce13
1 files changed, 13 insertions, 0 deletions
diff --git a/2075/CH5/EX5.6/pe5_6.sce b/2075/CH5/EX5.6/pe5_6.sce
new file mode 100755
index 000000000..0fbc03340
--- /dev/null
+++ b/2075/CH5/EX5.6/pe5_6.sce
@@ -0,0 +1,13 @@
+//example 5.6
+clc; funcprot(0);
+// Initialization of Variable
+R1=22;//resistance
+V1=56;//voltage
+V2=2;//voltage
+//calculation
+I=(V1-V2)/R1;
+disp(I,"current in mA")
+R2=V2/I;
+disp(R2*1000,"resistance2 in ohm:")
+printf('pick R2=R3=820ohm R1=R4=22 kohm')
+clear()