From b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b Mon Sep 17 00:00:00 2001 From: priyanka Date: Wed, 24 Jun 2015 15:03:17 +0530 Subject: initial commit / add all books --- 2075/CH1/EX1.9/pe1_9.sce | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100755 2075/CH1/EX1.9/pe1_9.sce (limited to '2075/CH1/EX1.9/pe1_9.sce') 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() -- cgit