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

AI Thread Summary
A program to determine a general function from a set of points does not exist due to the infinite possibilities of functions that can fit any given dataset. The discussion highlights least squares polynomial fitting as a common method for data fitting. The original poster is exploring a music synthesizer program that converts note frequencies into hexadecimal, seeking to understand this conversion process. It is suggested that the hexadecimal numbers may correspond to MIDI notes, with a reference to a relevant formula for pitch labeling. The topic of music programming is noted as being better suited for a specialized forum.
zeion
Messages
455
Reaction score
1
Hi,

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?

Thanks.
 
Mathematics news on Phys.org
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
 
Basically...
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.
 
If the 'hexadecimal' numbers you refer to are MIDI notes, then the formula is very likely this one:
http://en.wikipedia.org/wiki/Pitch_(music)#Labeling_pitches

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.
 
Thread 'Video on imaginary numbers and some queries'
Hi, I was watching the following video. I found some points confusing. Could you please help me to understand the gaps? Thanks, in advance! Question 1: Around 4:22, the video says the following. So for those mathematicians, negative numbers didn't exist. You could subtract, that is find the difference between two positive quantities, but you couldn't have a negative answer or negative coefficients. Mathematicians were so averse to negative numbers that there was no single quadratic...
Insights auto threads is broken atm, so I'm manually creating these for new Insight articles. In Dirac’s Principles of Quantum Mechanics published in 1930 he introduced a “convenient notation” he referred to as a “delta function” which he treated as a continuum analog to the discrete Kronecker delta. The Kronecker delta is simply the indexed components of the identity operator in matrix algebra Source: https://www.physicsforums.com/insights/what-exactly-is-diracs-delta-function/ by...
Thread 'Unit Circle Double Angle Derivations'
Here I made a terrible mistake of assuming this to be an equilateral triangle and set 2sinx=1 => x=pi/6. Although this did derive the double angle formulas it also led into a terrible mess trying to find all the combinations of sides. I must have been tired and just assumed 6x=180 and 2sinx=1. By that time, I was so mindset that I nearly scolded a person for even saying 90-x. I wonder if this is a case of biased observation that seeks to dis credit me like Jesus of Nazareth since in reality...
Back
Top