inputing a formula with powers and trig functions?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • benbridle38
    New Member
    • Mar 2009
    • 3

    inputing a formula with powers and trig functions?

    Hi,

    dont really know much about programming or anything like this.

    But basicly in my program i am trying to write the following formula:



    (linked formula as a picture to keep its format)

    basicly does anyone have any ideas how i would write this?

    my guess was Y=(sin((acos(x) )^(2/N)))^(2/N);
    but i dont think ive done the powers right, ive read somewere that you have to use pow(i,j) for powers?

    any help would be apreciated, thanks
  • donbock
    Recognized Expert Top Contributor
    • Mar 2008
    • 2427

    #2
    Raising the arccos to a power is pretty wierd. The answer depends on whether arccos returns degrees or radians. Where did this formula come from?

    Comment

    • benbridle38
      New Member
      • Mar 2009
      • 3

      #3
      reply

      i got it from two formulas

      x=(cos(t))2/N
      y=(sin(t))2/N

      and re-arranged the 1st equation, then substituted it into the second.

      um it shouldnt matter wheather its in deg or rad should it?
      as long as its consistant.

      t is an angle, and it gets cancelled out

      Comment

      • benbridle38
        New Member
        • Mar 2009
        • 3

        #4
        This is what ive come up with from the pow thing,

        Y=pow(sin(pow(a cos(x), 2/N)), 2/N);

        what you think? any chance that might work?

        Comment

        • donbock
          Recognized Expert Top Contributor
          • Mar 2008
          • 2427

          #5
          Originally posted by benbridle38
          i got it from two formulas
          Code:
          x=(cos(t))2/N
          y=(sin(t))2/N
          and re-arranged the 1st equation, then substituted it into the second.
          There are no powers (exponentiation ) here.
          Code:
          x = (cos(t)) * 2/N
          (x*N/2) = cost(t)
          t = arccos(x*N/2)
          
          y = (sin(t)) * 2/N
          y = sin(arccos(x*N/2)) * 2/N
          Your starting point is the canonical parametric equation representation of a circle. Are you sure converting to function form is helpful?

          Comment

          Working...