summaryrefslogtreecommitdiff
path: root/2075/CH1/EX1.9/pe1_9.sce
diff options
context:
space:
mode:
Diffstat (limited to '2075/CH1/EX1.9/pe1_9.sce')
-rwxr-xr-x2075/CH1/EX1.9/pe1_9.sce17
1 files changed, 17 insertions, 0 deletions
diff --git a/2075/CH1/EX1.9/pe1_9.sce b/2075/CH1/EX1.9/pe1_9.sce
new file mode 100755
index 000000000..f9d455cfb
--- /dev/null
+++ b/2075/CH1/EX1.9/pe1_9.sce
@@ -0,0 +1,17 @@
+//example 1.9
+clc; funcprot(0);
+// Initialization of Variable
+Vp=6;//V
+Ra=10;//Kohm
+Rb=1800;//ohm
+V=8;
+//solving for Ir & Vo
+A=[1 -124.6e-6; 7800 -1];
+B=[134.6e-6;0];
+x=inv(A)*B;
+Vo=x(2,1);
+disp(Vo,"output voltage in V:")
+Va=Vo+V;
+Vb=Vo-V;
+disp(Va,Vb,"V- & V+ in V:")
+clear()