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 --- 343/CH2/EX2.48/ex2_48.sce | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100755 343/CH2/EX2.48/ex2_48.sce (limited to '343/CH2/EX2.48/ex2_48.sce') diff --git a/343/CH2/EX2.48/ex2_48.sce b/343/CH2/EX2.48/ex2_48.sce new file mode 100755 index 000000000..ffeda8488 --- /dev/null +++ b/343/CH2/EX2.48/ex2_48.sce @@ -0,0 +1,14 @@ +clc; +L=0.01; //Assigning value sto parameters +fr=50; +function v=f(t), y=400*sin(3000*t-10),endfunction; //Defining functions +function i=f1(t),i=10*sqrt(2)*cos(3000*t-55), endfunction; +V=278.54-%i*49.11; +I=8.191+5.7*%i; +Z=V/I; +R=real(Z); +Xl=3000*L; +Xc=50; +C=1/(2*%pi*fr*Xc); +disp("Ohms",R,"resistance R"); +disp("Farad",C,"Capacitance C"); \ No newline at end of file -- cgit