Sine wave equation into Java Code

Click For Summary
SUMMARY

The discussion centers on implementing the sine wave equation in Java, specifically the formula Y(x, y, t) = A*cos(w*(x, y) + wt*t + FI). The key components include amplitude (A), wavelength (L), spatial angular frequency (w), speed (s), temporal angular frequency (wt), direction (d), and initiatory phase (FI). Participants clarify that w represents the wavenumber as a 2D vector, and the expression w*(x, y) denotes the scalar product of vector w and the coordinates (x, y).

PREREQUISITES
  • Understanding of wave equations and their components
  • Familiarity with Java programming language
  • Knowledge of vector mathematics, specifically scalar products
  • Basic concepts of angular frequency in physics
NEXT STEPS
  • Implement the sine wave equation in Java using the specified parameters
  • Explore Java libraries for vector mathematics, such as Apache Commons Math
  • Study the concept of wavenumber and its applications in wave physics
  • Learn about 2D and 3D vector operations in Java
USEFUL FOR

Students, software developers, and physicists interested in wave mechanics and its implementation in programming, particularly those working with Java.

TastyLemons
Messages
3
Reaction score
0
I have been trying to implement this Wave equation into java:

A = amplitude of wave
L = wave length
w = spatial angular frequency
s = speed
wt = temporal angular frequency
d = direction
FI = initiatory phase

Y(x,y,t)=A*cos(w *(x,y)+ wt*t + FI;

I understand that it returns a Vector. But i am unsure as to what this section of the formula means:

w *(x,y)

I believe that w is a vector. But I am not whether its a 3d Vector or 2d Vector, and how it is used.
If you have time, could you please explain this formula to me? Thank you

Source:
http://lnu.diva-portal.org/smash/get/diva2:205412/FULLTEXT01

Thank You!
 
Technology news on Phys.org
TastyLemons said:
I have been trying to implement this Wave equation into java:

A = amplitude of wave
L = wave length
w = spatial angular frequency
s = speed
wt = temporal angular frequency
d = direction
FI = initiatory phase

Y(x,y,t)=A*cos(w *(x,y)+ wt*t + FI);

Added missing bracket.

I understand that it returns a Vector. But i am unsure as to what this section of the formula means:

w *(x,y)

I believe that w is a vector. But I am not whether its a 3d Vector or 2d Vector, and how it is used.
If you have time, could you please explain this formula to me? Thank you

Source:
http://lnu.diva-portal.org/smash/get/diva2:205412/FULLTEXT01

Thank You!

So far as I can tell, [itex]w[/itex] is the wavenumber and is a 2D vector, and "w * (x, y)" is the scalar product [itex]\vec w \cdot (x,y)[/itex].
 

Similar threads

  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 1 ·
Replies
1
Views
1K
  • · Replies 1 ·
Replies
1
Views
1K
Replies
2
Views
2K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 7 ·
Replies
7
Views
2K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 78 ·
3
Replies
78
Views
7K
  • · Replies 7 ·
Replies
7
Views
3K
  • · Replies 5 ·
Replies
5
Views
2K