summaryrefslogtreecommitdiff
path: root/226/CH8/EX8.2/example2_sce.sce
diff options
context:
space:
mode:
Diffstat (limited to '226/CH8/EX8.2/example2_sce.sce')
-rwxr-xr-x226/CH8/EX8.2/example2_sce.sce9
1 files changed, 9 insertions, 0 deletions
diff --git a/226/CH8/EX8.2/example2_sce.sce b/226/CH8/EX8.2/example2_sce.sce
new file mode 100755
index 000000000..1625a28d3
--- /dev/null
+++ b/226/CH8/EX8.2/example2_sce.sce
@@ -0,0 +1,9 @@
+//chapter 8
+//example 8.2
+//page 313
+printf("\n")
+printf("given")
+P2=25*10^-3;//when frequency increase to 20KHz
+P1=50*10^-3;//when signal frequency is 5KHz
+Po=10*log10(P2/P1);
+printf(" output power change in decibels is %ddB\n",Po) \ No newline at end of file