summaryrefslogtreecommitdiff
path: root/608/CH41/EX41.04/41_04.sce
diff options
context:
space:
mode:
Diffstat (limited to '608/CH41/EX41.04/41_04.sce')
-rwxr-xr-x608/CH41/EX41.04/41_04.sce15
1 files changed, 15 insertions, 0 deletions
diff --git a/608/CH41/EX41.04/41_04.sce b/608/CH41/EX41.04/41_04.sce
new file mode 100755
index 000000000..24d0b5cc0
--- /dev/null
+++ b/608/CH41/EX41.04/41_04.sce
@@ -0,0 +1,15 @@
+//Problem 41.04: The current output of an attenuator is 50 mA. If the current ratio of the attenuator is 1.32 Np, determine (a) the current input and (b) the current ratio expressed in decibels. Assume that the input and load resistances of the attenuator are equal.
+
+//initializing the variables:
+I2 = 0.05; // in Amperes
+rin = 1.32; // in Np
+
+//calculation:
+//current input, I1
+I1 = I2*%e^(rin)
+//current ratio in decibels
+rid = 20*log10(I2/I1)
+
+printf("\n\n Result \n\n")
+printf("\ncurrent input, I1 is %.4f A",I1)
+printf("\ncurrent ratio in decibels is %.2f dB",rid) \ No newline at end of file