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 --- 24/CH33/EX33.5/Example33_5.sce | 15 +++++++++++++++ 24/CH33/EX33.5/Example33_5_result.txt | 5 +++++ 2 files changed, 20 insertions(+) create mode 100755 24/CH33/EX33.5/Example33_5.sce create mode 100755 24/CH33/EX33.5/Example33_5_result.txt (limited to '24/CH33/EX33.5') diff --git a/24/CH33/EX33.5/Example33_5.sce b/24/CH33/EX33.5/Example33_5.sce new file mode 100755 index 000000000..603dacfd9 --- /dev/null +++ b/24/CH33/EX33.5/Example33_5.sce @@ -0,0 +1,15 @@ +//Given that +C = 15*10^-6 //in Farad +Em = 36.0 //in volts +fd = 60.0 //in Hz + +//Sample Problem 33-5a +printf("**Sample Problem 33-5a**\n") +//Vc = Emax*sin(w*t) +printf("The voltage drop across the capacitor is Vc=%1.2f*sin(%1.2f*t)\n", Em, w) + +//Sample Problem 33-5b +printf("\n**Sample Problem 33-5b**\n") +//I = -C*(dV/dt) +IcMAX = abs(w*C*Em) +printf("The current in the capacitor as a function of time is Ic=%1.2f*cos(%1.2f*t)", IcMAX, w) \ No newline at end of file diff --git a/24/CH33/EX33.5/Example33_5_result.txt b/24/CH33/EX33.5/Example33_5_result.txt new file mode 100755 index 000000000..72d08a752 --- /dev/null +++ b/24/CH33/EX33.5/Example33_5_result.txt @@ -0,0 +1,5 @@ +**Sample Problem 33-5a** +The voltage drop across the capacitor is Vc=36.00*sin(376.99*t) + +**Sample Problem 33-5b** +The current in the capacitor as a function of time is Ic=0.20*cos(376.99*t) \ No newline at end of file -- cgit