Results 1 to 5 of 5

Thread: Help: I Need to Write a Math Formula in Javascript Format

  1. #1
    Undead Pirate d_stilgar's Avatar
    Join Date
    Mar 2005
    Location
    Philadelphia, PA
    Posts
    2,987

    Default Help: I Need to Write a Math Formula in Javascript Format

    I've been working on a research project where I need to correct for the light fall-off (vignetting) of a photographic lens. I've got the formula for the light fall-off written below, but I need to write it in Javascript, and I'm not sure how. Could someone here help me? Thanks.

    y = -4E-08x^4 + 6E-06x^3 - 0.0002x^2 + 0.0035x + 0.9486

    The final formula will be input into this program to make a photoshop filter to correct for the vignetting.

    http://lemieuxster.com/dev/gradient/

    Anyone here know how to write the above in the compatible syntax? Thanks.

  2. #2
    100% Recycled Pixels. Twigsoffury's Avatar
    Join Date
    Jan 2006
    Location
    Oklahoma city
    Posts
    2,017

    Default Re: Help: I Need to Write a Math Formula in Javascript Format

    Quote Originally Posted by d_stilgar View Post
    I've been working on a research project where I need to correct for the light fall-off (vignetting) of a photographic lens. I've got the formula for the light fall-off written below, but I need to write it in Javascript, and I'm not sure how. Could someone here help me? Thanks.

    y = -4E-08x^4 + 6E-06x^3 - 0.0002x^2 + 0.0035x + 0.9486

    The final formula will be input into this program to make a photoshop filter to correct for the vignetting.

    http://lemieuxster.com/dev/gradient/

    Anyone here know how to write the above in the compatible syntax? Thanks.

    nope!

    also, I think were the only two people left on the forums, actually posting.

  3. #3
    Undead Pirate d_stilgar's Avatar
    Join Date
    Mar 2005
    Location
    Philadelphia, PA
    Posts
    2,987

    Default Re: Help: I Need to Write a Math Formula in Javascript Format

    I got it figured out, and then I did a whole bunch of work, and now my research is essentially complete, which is good because I'm going to Hawaii to present my research to a whole bunch of really smart people.

  4. #4
    100% Recycled Pixels. Twigsoffury's Avatar
    Join Date
    Jan 2006
    Location
    Oklahoma city
    Posts
    2,017

    Default Re: Help: I Need to Write a Math Formula in Javascript Format

    Quote Originally Posted by d_stilgar View Post
    I got it figured out, and then I did a whole bunch of work, and now my research is essentially complete, which is good because I'm going to Hawaii to present my research to a whole bunch of really smart people.

    Best of luck dood!! ! ! 1 1

  5. #5
    Why must hard drives fail together? TheMainMan's Avatar
    Join Date
    May 2008
    Location
    Canada
    Posts
    804

    Default Re: Help: I Need to Write a Math Formula in Javascript Format

    Good luck with the presentation! All of this was way beyond my skill set.
    TheMainMan

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •