ulillillia wrote:I need to figure out the slope of a wave. The wave is nothing more than a cosine curve with a wavelength of 128 pixels and a height of 16 pixels. For a given pixel across the wavelength, what is the slope? The far edge of the very first pixel is the highest point of the wave with the far left of pixel number 64 being the trough (the lowest point). The steepest slope should be at pixel 31, 32, 95, and 96. How do I find out what the slope is for this case?
ulillillia wrote:Thanks, now it's working. This is my result (based on the center of the pixel:
=ATAN(-2*PI()*(O71/2) * SIN(2*PI()*(G71+0.5)/N71)/N71)*180/PI()
With spreadsheet cell references adjusted, it's, instead this:
SlopeDegrees = atan(-2*pi*(WaveHeight/2) * SIN(2*pi*(PixelNumber+0.5)/WaveLength)/WaveLength)*180/pi
Thanks!
ulillillia wrote:I need to figure out the slope of a wave. The wave is nothing more than a cosine curve with a wavelength of 128 pixels and a height of 16 pixels. For a given pixel across the wavelength, what is the slope? The far edge of the very first pixel is the highest point of the wave with the far left of pixel number 64 being the trough (the lowest point). The steepest slope should be at pixel 31, 32, 95, and 96. How do I find out what the slope is for this case?
f(x+h)-f(x)
-----------
h
f(x+h)-f(x)
lim -----------
h->0 h
drew wrote:You can use the same procedure to find the slope of any continuous function, provided it doesn't have a sharp bend (only curves).
Users browsing this forum: No registered users and 1 guest