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

  • Context: Undergrad 
  • Thread starter Thread starter btb4198
  • Start date Start date
  • Tags Tags
    Amplitude Fft Units
Click For Summary

Discussion Overview

The discussion revolves around the units of amplitude and frequency in a coding context, specifically related to a sine wave function. Participants explore the implications of these units in various physical scenarios, including sound waves and other potential applications.

Discussion Character

  • Exploratory
  • Technical explanation
  • Conceptual clarification
  • Debate/contested

Main Points Raised

  • One participant notes that frequency is measured in Hz but questions the units of amplitude and the resulting value F, which depends on the physical quantity being described.
  • Another participant suggests that without knowing the specific application (e.g., swing, electrical current, height of a liquid), the units cannot be determined.
  • It is mentioned that the sine function itself does not have units, implying that F and amplitude share the same units, which are contingent on the physical context.
  • Participants propose that if the signal represents a sound wave, additional context about the source (e.g., microphone or pressure sensor) would be necessary to ascertain the units.
  • One participant clarifies that the sine wave presented is a hypothetical construct, indicating that there is no definitive answer to the question of units.
  • Another participant humorously suggests that if the sine wave is made up, then the units can also be arbitrarily defined.

Areas of Agreement / Disagreement

Participants generally agree that the units of amplitude and F depend on the specific physical context, but there is no consensus on what those units are without additional information. Multiple competing views remain regarding the interpretation of the sine wave's application.

Contextual Notes

The discussion highlights the limitations of determining units without clear definitions of the physical quantities involved. There are unresolved assumptions about the nature of the signal and its source.

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
3K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 8 ·
Replies
8
Views
3K
  • · Replies 2 ·
Replies
2
Views
2K
Replies
3
Views
2K
Replies
3
Views
953
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 29 ·
Replies
29
Views
2K
  • · Replies 4 ·
Replies
4
Views
4K