summaryrefslogtreecommitdiff
path: root/3773/CH4/EX4.2/Ex4_2.sce
diff options
context:
space:
mode:
Diffstat (limited to '3773/CH4/EX4.2/Ex4_2.sce')
-rw-r--r--3773/CH4/EX4.2/Ex4_2.sce14
1 files changed, 14 insertions, 0 deletions
diff --git a/3773/CH4/EX4.2/Ex4_2.sce b/3773/CH4/EX4.2/Ex4_2.sce
new file mode 100644
index 000000000..e69146989
--- /dev/null
+++ b/3773/CH4/EX4.2/Ex4_2.sce
@@ -0,0 +1,14 @@
+//Chapter 4: Radiation
+//Example 4-4.2
+clc;
+
+//Variable Initialization
+v = 3e8 //Speed of light(m/s)
+f = 10e6 //Frequency (Hz)
+
+//Calculation
+w = 2*%pi*f //Angular frequency(rad/s)
+r = v/w //Distance (m)
+
+//Result
+mprintf("The distance for the specified condition is %.2f m",r)