Undergrad Units of Amplitude & Frequency in Coding (n=0 to 52920)

Click For Summary
SUMMARY

The discussion centers on the units of Amplitude and Frequency in the context of a sine wave represented by the equation F = Amplitude * sin(2 * pi * n * Frequency / 44100). Frequency is definitively measured in Hertz (Hz), while the units of Amplitude and F depend on the physical quantity being represented, such as electrical current, voltage, or sound waves. The sine function itself is unitless, indicating that Amplitude and F share the same units. Without specific context regarding the source of the signal, such as whether it originates from a microphone or pressure sensor, the exact units remain indeterminate.

PREREQUISITES
  • Understanding of sine wave mathematics
  • Knowledge of signal processing concepts
  • Familiarity with units of measurement in physics
  • Basic programming skills in C/C++ for interpreting the code snippet
NEXT STEPS
  • Research the relationship between Amplitude and Frequency in sound waves
  • Explore the implications of different physical quantities on unit measurement
  • Learn about signal sources and their impact on data interpretation
  • Investigate the use of sine waves in digital signal processing
USEFUL FOR

Engineers, physicists, audio technicians, and anyone involved in signal processing or waveform analysis will benefit from this discussion.

btb4198
Messages
570
Reaction score
10
for (int n = 0; n < 52920; n++){
F = Amplitude * sin(2 *pi*n* Frequency/44100) ;
}
what are the units of Amplitude ?
I know Frequency is in Hz
also what are the unit of F?
 
Physics news on Phys.org
It appears to be an expression for the instantaneous values of something which varies sinusoisally. But without know what that thing is, we can't tell the units.

It could be a swing. It could be electrical current, or voltage or power. It could be the height of a liquid. It could be almost anything.
 
The sine doesn't have units, so F and Amplitude have the same units. But what those units are, depends on what physical quantity you're describing, as anorlunda said.
 
what if it is a sound wave?
 
btb4198 said:
what if it is a sound wave?

That's still not enough. You're not going to get anywhere asking people to guess.

Does the signal come from a microphone or a pressure sensor? Information like that will provide your answer.
 
so that signal I posted, is just a sinewave I make up. I did not get it from anywhere...
 
btb4198 said:
so that signal I posted, is just a sinewave I make up. I did not get it from anywhere...
So there is no answer to your question. :smile:
 
btb4198 said:
that signal I posted, is just a sinewave I make up
Then you can make up the units as well.
 

Similar threads

  • · Replies 10 ·
Replies
10
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
Replies
3
Views
1K
  • · Replies 8 ·
Replies
8
Views
3K
  • · Replies 29 ·
Replies
29
Views
1K
Replies
3
Views
842
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 4 ·
Replies
4
Views
4K
  • · Replies 11 ·
Replies
11
Views
6K