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 --- 2825/CH15/EX15.7/Ex15_7.sce | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100755 2825/CH15/EX15.7/Ex15_7.sce (limited to '2825/CH15/EX15.7/Ex15_7.sce') diff --git a/2825/CH15/EX15.7/Ex15_7.sce b/2825/CH15/EX15.7/Ex15_7.sce new file mode 100755 index 000000000..35d15103b --- /dev/null +++ b/2825/CH15/EX15.7/Ex15_7.sce @@ -0,0 +1,21 @@ +//Ex15_7 Pg-776 +clc + +disp("Given the equation") +printf("\n E = 100*sin(628000*t) + 25*sin(621720*t) \n - 25*cos(634280*t)) \n") + m=50/100 //modulation factor in percentage + Ec=100 //carrier wave amplitude in V + Em=10 //modulated wave amplitude in V +Fc=100000 //carier frequency in Hz +Fm=1000 //modulating frequency in Hz +pi=3.14 + +omega_c=2*pi*Fc //carier frequency +omega_m=2*pi*Em //modulating frequency + +disp("Now,putting these equation in the standard equations for modulated voltage wave,") +disp(" e = Ec*sin(omega_c*t)+m*Ec/2*cos(omega_c-omega_m)*t-m*Ec/2*cos(omega_c-omega_m)*t") +USB=omega_c+omega_m //upper sideband +LSB=omega_c-omega_m //lower sideband +mEc=m*Ec/2 +printf("\n = 100*sin(628000*t) + %.0f*sin(%.0f*t) \n - %.0f*cos(%.0f*t))",mEc,USB,mEc,LSB) -- cgit