summaryrefslogtreecommitdiff
path: root/3739/CH6/EX6.10/EX6_10.sce
diff options
context:
space:
mode:
Diffstat (limited to '3739/CH6/EX6.10/EX6_10.sce')
-rw-r--r--3739/CH6/EX6.10/EX6_10.sce14
1 files changed, 14 insertions, 0 deletions
diff --git a/3739/CH6/EX6.10/EX6_10.sce b/3739/CH6/EX6.10/EX6_10.sce
new file mode 100644
index 000000000..cd0b57109
--- /dev/null
+++ b/3739/CH6/EX6.10/EX6_10.sce
@@ -0,0 +1,14 @@
+//Chapter 6, Example 6.10, page 246
+clc
+//Initialisation
+f=1800*10**6 //frequency in Hz
+c=3*10**8 //speed of light
+
+//Calculation
+h=c*f**-1 //wavelength
+hv=20*h //in metre
+dh=10*h //in metre
+
+//Results
+printf("hv = %.2f m ",hv)
+printf("\ndh = %.2f m ",dh)