From b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b Mon Sep 17 00:00:00 2001 From: priyanka Date: Wed, 24 Jun 2015 15:03:17 +0530 Subject: initial commit / add all books --- 884/CH7/EX7.2/Example7_2.sce | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100755 884/CH7/EX7.2/Example7_2.sce (limited to '884/CH7/EX7.2/Example7_2.sce') diff --git a/884/CH7/EX7.2/Example7_2.sce b/884/CH7/EX7.2/Example7_2.sce new file mode 100755 index 000000000..6de825568 --- /dev/null +++ b/884/CH7/EX7.2/Example7_2.sce @@ -0,0 +1,14 @@ +//calculation of frequency of a wave + +clear; +clc; + +printf("\t Example 7.2\n"); + +lambda=522*10^-9;//wavelength, m +c=3*10^8;//speed of light in vacuum, m/s +v=c/lambda;//frequency, Hz + +printf("\t the frequency of the wave is : %4.2f *10^14 Hz\n",v*10^-14); + +//End -- cgit