16.12.2012 Views

Computer Algebra Recipes

Computer Algebra Recipes

Computer Algebra Recipes

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

260 CHAPTER 6. LINEAR PDE MODELS. PART 2<br />

> for m from 0 to 1 do<br />

> sol[m]:=seq(p[m,s]=fsolve(f(m),p,s..s+1),s=0..4);<br />

> assign(sol[m]):<br />

> end do;<br />

sol 0 := p0; 0 =0:; p0; 1 =1:219669891; p0; 2 =2:233130594;<br />

p0; 3 =3:238315484;p0; 4 =4:241062864<br />

sol 1 := p1; 0 =0:5860669999; p1; 1 =1:697050942; p1; 2 =2:717193891;<br />

p1; 3 =3:726137088; p1; 4 =4:731227206<br />

Recalling that ! = ck = c p ® 2 + q 2 , the eigenfrequencies are given by<br />

!n;m;s = ¼c<br />

r<br />

³ ´<br />

pm;s<br />

2<br />

+<br />

a<br />

³<br />

n<br />

´ 2<br />

h<br />

radians per second;<br />

or, on using ! =2¼º,<br />

ºn;m;s = c<br />

r<br />

³pm;s ´ 2 ³<br />

n<br />

´ 2<br />

+ hertz:<br />

2 a h<br />

A functional operator F is formed to calculate the ºn;m;s.<br />

> F:=(n,m,s)->(c/2)*sqrt((p[m,s]/a)^2+(n/h)^2):<br />

The given values of the cylinder radius a, cylinder height h, and speed of sound<br />

c are entered,<br />

> a:=1.83: h:=3.04: c:=344:<br />

and the three lowest allowed frequencies calculated using F.<br />

> nu[0,1,0]:=F(0,1,0);<br />

º0; 1; 0 := 55:08389289<br />

> nu[1,0,0]:=F(1,0,0);<br />

º1; 0; 0 := 56:57894736<br />

> nu[1,1,0]:=F(1,1,0);<br />

º1; 1; 0 := 78:96462843<br />

Consulting The Acoustical Foundations of Music, by John Backus [Bac69], Vectoria<br />

determines that the closest musical notes are A1 (55.000 Hz) for the ¯rst<br />

two frequencies and D2 # (77.782 Hz) for the third. Not having much of a<br />

feeling for these numbers, Vectoria goes to the Internet and ¯nds that the<br />

lowest-frequency note on a piano is 27.500 Hz and the highest frequency is<br />

4186.0 Hz. So the allowed frequencies in this \shower stall" example are at the<br />

low-frequency end of the piano keyboard.<br />

PROBLEMS:<br />

Problem 6-7: Acoustical waveguide<br />

A sound wave of frequency ! is generated at one end (z =0)ofaverylong<br />

straight cylindrical pipe of radius a having rigid walls.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!