1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

JavaScript Algebra: y = nth root of t. <---Convert to Javascript. Please Help.

Discussion in 'JavaScript' started by RogerDodgr, Jul 21, 2009.

  1. #1
    Hello
    How can this JavaScript function be written?
    y = nth root of t.
    Code (markup):
    Recalling algebra lessons:
    "2nd root of t" is also know as "the square root of t". i.e. x*x =t, solve for x.
    "3rd root of t" would be like saying x*x*x=t, solve for x.
    
    Code (markup):
    Thanks'
    RogerDodger
     
    RogerDodgr, Jul 21, 2009 IP
  2. stOK

    stOK Active Member

    Messages:
    114
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    53
    #2
    Try something like that
    y=pow(x,1/n)
     
    stOK, Jul 22, 2009 IP
    RogerDodgr likes this.
  3. RogerDodgr

    RogerDodgr Well-Known Member

    Messages:
    267
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    105
    #3
    That's about what I came up with yesterday stOK. Thanks, and rep added.
     
    RogerDodgr, Jul 22, 2009 IP