dear Prof,

i am wondering, can make a scalarField that is for doppler effect?

i am thinking with a template of your codes, i can try to make

http://www.falstad.com/ripple/ with many options

currently, my attempt is not working

a summary of the codes is

for (i=0; i < number; i++)

{

xscalar = xmin+(xmax-xmin)*i/number;

for (j=0; j < number; j++)

{

yscalar = ymin+(ymax-ymin)*j/number;

d[ i ][ j ]=Math.sqrt((xscalar-x)*(xscalar-x)+(yscalar-y)*(yscalar-y));

//sum [ i ][ j ]= A1*Math.cos(omega*t-k*d[ i ][ j ]);

//sum[ i ][ j ]= A1*Math.cos(omega/4*t);

sum[ i ][ j ]= A1*Math.cos(-k*d [ i ][ j ]);

}

}

Thanks!

Full screen applet or

Problem viewing java?Add http://www.phy.ntnu.edu.tw/ to exception site list**Press the Alt key and the left mouse button to drag the applet off the browser and onto the desktop.** This work is licensed under a

Creative Commons Attribution 2.5 Taiwan License
- Please feel free to post your ideas about how to use the simulation for better teaching and learning.
- Post questions to be asked to help students to think, to explore.
- Upload worksheets as attached files to share with more users.

Let's work together. We can help more users understand physics conceptually and enjoy the fun of learning physics!