Curve Fitting

Hi

Am struggling a bit with trying to implement an algorithm from Numerical Recipes in C.

Given a set of points that produce a nice gentle 2nd degree polynomial curve, I want to find a,b and c such that y = ax^2 = bx + c.

Have tried using svdfit but am getting a :no convergence in 30 svdcmp iterations, so perhaps I am doing something wrong. Another alternative would be lfit.

Here is some sample data to test your program on.

1.5625 2802.5
2.5625 4802.5
3.5625 6602.5
4.5625 8202.5
5.5625 9642.5
6.5625 10922.5
7.5625 11922.5
8.5625 12722.5
9.5625 13402.5

Solution must be in ANSI C and be well commented with explanations on use.

Happy for you to simply get the NR algorithm to work and explain how you did it.

Thank you

Search All Jobs:

Web Development & Marketing Services

Occasionally, there will be Wordpress (and possibly) Joomla installations based on themes. This will include contact with clients. There might also be tasks such as data entry required by the position...

  • Fixed Price Project
  • Max $30
  • 2 years, 7 months left

Full Time Permanent Position - SEO,Blog Post Writer/Internet Marketing/Social Networking

No agencies! I want one full-time employee for long-term from the Philippines only. I have three wordpress websites that I need a full-time employee to do all of my online marketing and content creation. The three websites are www.KarinaHarris.com, www.KarinaSecrets.com, www.CueMe...

  • Fixed Price Project
  • Max $275
  • 2 years, 7 months left

Full Time Permanent Position - SEO,Blog Post Writer/Internet Marketing/Social Networking

No agencies! I want one full-time employee for long-term from the Philippines only. I have three wordpress websites that I need a full-time employee to do all of my online marketing and content creation. The three websites are www.KarinaHarris.com, www.KarinaSecrets.com, www.CueMe...

  • Fixed Price Project
  • Max $275
  • 2 years, 7 months left

Our Transcription Team Is Growning. Join Us (usa Only)

Our team is looking for experienced transcribers. There is work available to be done daily. You must be willing to join our team as exculsive affilate. I will assign work to you as I get it in. You must be available at least three days per week. Weekend work is required...

  • Fixed Price Project
  • Max $15
  • 3 years, 6 months left

Administrative Support Professionals In TAMPA

I am looking for any Tampa natives to join my team. Must be knowledgeable of the area (there will be a test question or two to ensure you are from the area)...

Skills Required: test english
  • Fixed Price Project
  • Max $200
  • Job Expired

Need 5 Fast Writers To Join My Team

Hello oDeskies, This is a coming up company now in business for more than 6 month. We want to have one of the best team of writers ever in online market place for outsourcing . We are currently searching for 5-10 members to join your team...

  • Fixed Price Project
  • Max $500
  • 9 months, 2 weeks left

Need 5 Fast Writers To Join My Team

Hello oDeskies, This is a coming up company now in business for more than 6 month. We want to have one of the best team of writers ever in online market place for outsourcing . We are currently searching for 5-10 members to join your team...

  • Fixed Price Project
  • Max $500
  • 9 months, 2 weeks left

Our Transcription Team Is Growning. Join Us (usa Only)

Our team is looking for experienced transcribers. There is work available to be done daily. You must be willing to join our team as exculsive affilate. I will assign work to you as I get it in. You must be available at least three days per week. Weekend work is required...

  • Fixed Price Project
  • Max $15
  • 3 years, 6 months left
  • Fixed Price Project
  • Max $360
  • 3 years left

Web Side 08/26/2013

Hi .I have 1) Volusion web site and i want to change the design and template and make it look something close to www.zulily.com or http://stores.ebay.com.au/DELUXEPRODUCTS 2) EBay account and i want to change the design and make it looks like skirt shop on eBay or http://stores.ebay.com...

Skills Required: web-design
  • Fixed Price Project
  • Max $400
  • 3 years, 1 month left

Job Details

  • Job Type
  • Fixed Price Job
  • Budget
  • Max $20
  • Start Date
  • 01/03/2012 07:57:11 PM
  • Job Status
  • Job Expired