To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.off-topic.geekOpen lugnet.off-topic.geek in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Off-Topic / Geek / 2680
2679  |  2681
Subject: 
Re: Off on a tangent (or a sine, anyway)
Newsgroups: 
lugnet.off-topic.geek
Date: 
Tue, 16 Jan 2001 20:38:09 GMT
Viewed: 
124 times
  
In lugnet.off-topic.geek, Dave Schuler writes:
In lugnet.off-topic.geek, A. Mark Wilburn writes:

If you want a wavelength of 324 and it passes through both points,
y = 90 cos (1.11 x) + 90 will give you the right equation. (But amplitude is
now 90, not 120)

Doh!  I was trying to be so careful!  I thought amplitude was the "height"
from high to low--is it actually half that?

Yep! It's measured from the baseline to a peak (or a valley).

At any rate, I meant to write
the min occurs at y=60, so that the high points occur along the line y=180
and the low points occur along y=60.  I don't mean to be difficult, but I'm
trying to get it going from (0,180) to (162,60) in a single high:low cycle
(whatever the term).

<grin> the term for that is half a wavelength, or Crest to Trough. Something
like that. (A wavelength is measured from peak to peak, so peak to valley is
1/2 of it).

I've messed around a little further, and the equation:

  y=60cos(x/51.5)+120

gets visually pretty close to what I'm looking for.  Is there a more logical
method than the try-and-try-again way I've used so far?


Yes (I just had a test on that today).

Hmmm, lemme look at it...


Alrighty, here's what you've got. Since you want a sine wave (or does it not
matter?) then the basepoint (where the wave starts) would be at (81, 120)
with an amplitude of -60 (negative coz it starts moving downward instead of
up). Since sine and cosine are the same wave, simply 90 degrees out of phase
of each other (meaning shifted to the side), your equation works fine too.

That takes care of the amplitude; now the period. A period of a normal sine
wave is 360, but you want a 324 period. So you have to put something in
front of X; which is.... hmm... old period divided by new period. Yeah. So
That's 360/324, which is 1.111 like Mark said.

Now last matter to take care of is the shift; you want the origin of the
wave at (81, 120), so you need to add 120 at the end of the equation, and
you want to shift the graph 81 to the right, so that'd mean subtracting 81
from the item you're taking the sine of.

To put that all together...

y= -60 sin(1.111x-81)+120

Which should do the trick.

Note that it's possible to orignally look at the graph as a cosine wave, or
take a different origin point, so many different equations could produce the
same graph!

I was thinking for some reason that it should be a sine, but cosine works
fine for me, too.  Thanks for your help!

Oh, (oops, I missed this ;-)

HTH,
-Shiri



Message has 1 Reply:
  Re: Off on a tangent (or a sine, anyway)
 
(...) Thanks for your help, too. I just hope you did well on your test, or I'm in trouble... Dave! (24 years ago, 16-Jan-01, to lugnet.off-topic.geek)

Message is in Reply To:
  Re: Off on a tangent (or a sine, anyway)
 
(...) Doh! I was trying to be so careful! I thought amplitude was the "height" from high to low--is it actually half that? At any rate, I meant to write the min occurs at y=60, so that the high points occur along the line y=180 and the low points (...) (24 years ago, 16-Jan-01, to lugnet.off-topic.geek)

7 Messages in This Thread:


Entire Thread on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact

This Message and its Replies on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact
    

Custom Search

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR