I've tried to search for an already existing program to do this but I've found nothing that is open-source or easily incorporatable in a c program.
Maybe you could help me with an example? Ie: How would I go about finding the equation of a sin curve for the points [(1,7), (2,21), (3, -14),]...