summaryrefslogtreecommitdiff
path: root/992/CH3/EX3.2/ex3_2.txt
diff options
context:
space:
mode:
Diffstat (limited to '992/CH3/EX3.2/ex3_2.txt')
-rwxr-xr-x992/CH3/EX3.2/ex3_2.txt20
1 files changed, 20 insertions, 0 deletions
diff --git a/992/CH3/EX3.2/ex3_2.txt b/992/CH3/EX3.2/ex3_2.txt
new file mode 100755
index 000000000..31fe05641
--- /dev/null
+++ b/992/CH3/EX3.2/ex3_2.txt
@@ -0,0 +1,20 @@
+//Caption:Program to calculate Power dissipated.
+//Exa:3.2
+clc;
+clear;
+close;
+//Given:
+//V=12*sin(6*10^8*t+5*sin(1250)*t);
+//Compairing it with V=A*sin(wc*t+mf*sin(wm)*t);
+wc=6*10^8;
+wm=1250;
+mf=5;
+A=12;
+R=10;
+Vrms=A/sqrt(2);
+fc=wc/2/%pi;
+fm=wm/2/%pi;
+P=Vrms^2/R;
+printf("\n Fc = %f MHz",fc/10^6);
+printf("\n Fm = %fHz",fm);
+printf("\n Power = %fW",P); \ No newline at end of file