summaryrefslogtreecommitdiff
path: root/3753/CH2/EX2.7/Ex2_7.sce
blob: af2e38a7c18b3070637967716cedce826a1e007b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
//Example number 2.7, Page number 2.34


clc;clear;close

// Variable declaration
m=1 // unitless
lamda_l=6000*10**-10 // in m
theta=0.046*(%pi/180) // radian
n=2*10**6// unitless

// Calculation
lamda_s=(m*lamda_l)/(sin(theta)) // in m
v=n*lamda_s // in m/s

// Result
printf("Ultrasonic wavelength,lamda s =%0.2e m",(lamda_s))
printf("\nVelocity of ultrasonic waves in liquid = %0.f ms^-1",v)
// Answer varies due to rounding of numbers