Vector Formula with multiple Equal signs?

Click For Summary
SUMMARY

The discussion focuses on implementing the angular wavenumber equation in Java, specifically using the formula k = 2π/λ. The user is attempting to calculate the wavenumber using the Vector2f class from the Java library, initializing it with a value derived from the wavelength. The conversation clarifies that multiple equations related to wavenumber, frequency, and phase velocity can be used independently based on the known variables in a given scenario.

PREREQUISITES
  • Understanding of angular wavenumber and its equations (k = 2π/λ, k = 2πν/vp, k = ω/vp)
  • Familiarity with Java programming and the Vector2f class
  • Basic knowledge of wave properties such as wavelength, frequency, and phase velocity
  • Experience with mathematical operations in programming
NEXT STEPS
  • Implement the full dispersion relation in Java using the equations provided
  • Explore the Java 2D graphics library for visualizing wave properties
  • Learn about the mathematical concepts of wave mechanics and their applications
  • Investigate optimization techniques for numerical calculations in Java
USEFUL FOR

Java developers, physicists, and students studying wave mechanics who are looking to implement mathematical models related to wavenumber and wave properties in programming.

TastyLemons
Messages
3
Reaction score
0
How do i go about solving the following equation? (Attached)

I am attempting to implement it into java. BUt i have not gotten any further than this:

wavenumber = new Vector2f(0.0f, 0.0f);
wavenumber.x = (float) (2 * Math.PI / wavelength);

Wikipedia Info for Equation:

In general, the angular wavenumber k (i.e. the magnitude of the wave vector) is given by

k = \frac{2\pi}{\lambda} = \frac{2\pi\nu}{v_\mathrm{p}}=\frac{\omega}{v_\mathrm{p}}
where \nu is the frequency of the wave, \lambda is the wavelength, \omega = 2\pi\nu is the angular frequency of the wave, and vp is the phase velocity of the wave. The dependence of the wavenumber on the frequency (or more commonly the frequency on the wavenumber) is known as a dispersion relation.

SOURCE:

http://en.wikipedia.org/wiki/Wavenumber
 

Attachments

  • 43ee55d54c97791a4ddabe0e162c24fd.png
    43ee55d54c97791a4ddabe0e162c24fd.png
    675 bytes · Views: 475
Physics news on Phys.org
It is just a short way of writing several different equations, ##k = 2\pi/\lambda##, ##k = 2\pi\nu/v_p##, ##k = \omega/v_p##, etc.

In your computer program, use whichever equation(s) you need, depending on which values are known and which are unknown.
 
  • Like
Likes   Reactions: 1 person
So they are separate? i don't use them all together?
 

Similar threads

  • · Replies 10 ·
Replies
10
Views
3K
  • · Replies 2 ·
Replies
2
Views
2K
Replies
10
Views
3K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 10 ·
Replies
10
Views
4K
  • · Replies 10 ·
Replies
10
Views
1K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K