Results 1 to 3 of 3

Math Help - Simplifying Trig Equation (like Wolfram|Alpha does itů)

  1. #1
    Newbie wideEyedPupil's Avatar
    Joined
    Jan 2010
    From
    Melbourne Australia
    Posts
    13

    Simplifying Trig Equation (like Wolfram|Alpha does itů)

    I have the equation  y = \sin(\frac{2\pi}{3}\theta - \frac{\pi}{6}) to produce the second curve I'm using to make a sinusoidal function that smoothly maps from 0 to 1. The range for y= needed to be [0.5, 1] and it seems to be correct.

    Wolfram|Alpha tells me this is equivalent to y = -\cos(\displaystyle{\frac{1}{3}}(2\pi\theta + \pi))

    I looked at all the trig equations on Wikipedia to try refreshing my Trig knowledge and got enough to transpose the basic sine curve into the form I need it. I can't work out the steps to simplify my equation to the answer Wolfram|Alpha provided though.

    As far as my Javascript program goes, it don't ?think one expression is going to cost any more than the other, but given the large number of times it needs to calculate the function (1000 points * 60 frames/sec) every bit counts. Any pointers gladly received! I'm interested on how a program can do that crunching to a simpler expression and how many steps it involves.

    In the image below, I'm use the Orange curve function for range of x=[0, 0.5) and the Purple curve function for range x=[0.5, 1] to make a composite function.



    Grapher file if you are on Mac (Grapher comes free with most versions of OS X):
    Download
    Follow Math Help Forum on Facebook and Google+

  2. #2
    Forum Admin topsquark's Avatar
    Joined
    Jan 2006
    From
    Wellsville, NY
    Posts
    9,815
    Thanks
    316
    Awards
    1
    sin \left  ( \frac{2 \pi}{3} \theta - \frac{\pi}{6} \right ) = -cos \left ( \left [ \frac{2 pi}{3} - \frac{ \pi}{6} \right ] + \frac{ \pi}{2} \right )

    Try it from there.

    -Dan
    Follow Math Help Forum on Facebook and Google+

  3. #3
    Newbie wideEyedPupil's Avatar
    Joined
    Jan 2010
    From
    Melbourne Australia
    Posts
    13

    Cheers

    Oh thanks, I see that now!

    After some sleep I realised I was unnecessarily combining two curves into a composite function to approximate this more simple curve:
    2y = 1 +sin(\pi(x-\frac{1}{2}))

    Green curve is new simpler function!


    If anybody has any experience with Grapher, i would like to know how to limit the range of a function being plotted to a sub-section of the curve. It's a pretty powerful 2D/3D animated plotter, if people haven't seen it, check it.
    Follow Math Help Forum on Facebook and Google+

Similar Math Help Forum Discussions

  1. Replies: 1
    Last Post: July 30th 2011, 08:47 PM
  2. Wolfram Alpha
    Posted in the Math Software Forum
    Replies: 0
    Last Post: March 8th 2011, 11:02 AM
  3. Wolfram Alpha miscalculation
    Posted in the Calculus Forum
    Replies: 4
    Last Post: July 5th 2010, 05:37 AM
  4. Derivative using Wolfram Alpha
    Posted in the Math Software Forum
    Replies: 2
    Last Post: January 4th 2010, 09:28 AM
  5. Wolfram Alpha
    Posted in the Math Forum
    Replies: 2
    Last Post: June 6th 2009, 07:35 AM

Search Tags


/mathhelpforum @mathhelpforum