blob: 28cc60d3ce4840b5ffd41b636cbb74570124316e (
plain)
1
2
3
4
5
6
7
8
9
|
//Example 2_19
clc();
clear;
//To calculate the wavelength of the spectral line
n=2
N=4250 //units in centimeters
theta=30 //units in degrees
lemda=(((1/N)*sin(theta*%pi/180))/n)*10^8
printf("The wavelength of the spectral line is %.0f angstrom",lemda)
|