1. Limited time only! Sign up for a free 30min personal tutor trial with Chegg Tutors
    Dismiss Notice
Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Program to solve for a formula given a set of pairs of points?

  1. Apr 3, 2012 #1

    I'm look for a program that can solve for a general function when given a set of pairs of points?
    Does anything like that exist?

  2. jcsd
  3. Apr 3, 2012 #2


    User Avatar
    Staff Emeritus
    Science Advisor
    Gold Member

    This doesn't exist, because there are infinitely many functions that can fit any given set of points. Is there any particular kind of function you think the points are supposed to look like? Least squares polynomial fitting is the most common type of data fitting to a function
  4. Apr 3, 2012 #3
    I'm looking at a music synthesizer program that converts frequency of notes into a hexadecimal representation that the program reads and plays, and I'm trying to get it to play my custom songs, but I can't figure out how it's doing that conversion.
  5. Apr 3, 2012 #4
    If the 'hexadecimal' numbers you refer to are MIDI notes, then the formula is very likely this one:

    But this is a question better suited for a sound programming forum; it has little relation to what you wrote in your first post, I'm afraid.
Share this great discussion with others via Reddit, Google+, Twitter, or Facebook