From 7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 Mon Sep 17 00:00:00 2001 From: prashantsinalkar Date: Tue, 10 Oct 2017 12:27:19 +0530 Subject: initial commit / add all books --- 2459/CH21/EX21.6/Ex21_6.PNG | Bin 0 -> 4539 bytes 2459/CH21/EX21.6/Ex21_6.sce | 20 ++++++++++++++++++++ 2459/CH21/EX21.6/Figure21_6.JPG | Bin 0 -> 72724 bytes 3 files changed, 20 insertions(+) create mode 100644 2459/CH21/EX21.6/Ex21_6.PNG create mode 100644 2459/CH21/EX21.6/Ex21_6.sce create mode 100644 2459/CH21/EX21.6/Figure21_6.JPG (limited to '2459/CH21/EX21.6') diff --git a/2459/CH21/EX21.6/Ex21_6.PNG b/2459/CH21/EX21.6/Ex21_6.PNG new file mode 100644 index 000000000..78368f6af Binary files /dev/null and b/2459/CH21/EX21.6/Ex21_6.PNG differ diff --git a/2459/CH21/EX21.6/Ex21_6.sce b/2459/CH21/EX21.6/Ex21_6.sce new file mode 100644 index 000000000..a3200f544 --- /dev/null +++ b/2459/CH21/EX21.6/Ex21_6.sce @@ -0,0 +1,20 @@ +//chapter21 +//example21.6 +//page472 + +Rl=4 // kilo ohm +R=1 // kilo ohm +Vin_peak=10 // V + +Vout_peak=Vin_peak*Rl/(Rl+R) +Vout_min=0 // because of diode +printf("peak output voltage = %.3f V \n",Vout_peak) + +// plotting input and output waveforms in same graph using following code instead of using xcos +clf() +t=linspace(0,2*%pi,100) +Vin=Vin_peak*sin(t) +Vout=Vout_peak*sin(t)+Vout_min +plot2d(t,Vin,style=2,rect=[0,0,10,20]) +xtitle("input - blue output - green","t","volts") +plot2d(t,Vout,style=3,rect=[0,0,10,20]) diff --git a/2459/CH21/EX21.6/Figure21_6.JPG b/2459/CH21/EX21.6/Figure21_6.JPG new file mode 100644 index 000000000..81c796e93 Binary files /dev/null and b/2459/CH21/EX21.6/Figure21_6.JPG differ -- cgit