ALGLIB forum
It is currently Fri May 24, 2024 5:13 am

All times are UTC

Forum rules

1. This forum can be used for discussion of both ALGLIB-related and general numerical analysis questions
2. This forum is English-only - postings in other languages will be removed.

Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: How to fit a non-linear equation
PostPosted: Fri Jun 04, 2010 3:08 pm 

Joined: Fri Jun 04, 2010 2:34 pm
Posts: 1
This may be a dumb question, as I am an inexperienced programmer with limited mathematical abilities to boot.

That being said, I'm trying to fit the following equation:
y^2 = 1 + ((b1*x^2)/(x^2-c1)) + ((b2*x^2)/(x^2-c2)) + ((b3*x^2)/(x^2-c3))

I have a list of sets of X and Y values, and would like to use ALGLIB with VB6 to give me values for b1, b2, b3, c1, c2, and c3. Is ALGLIB right for the job?

I think I need to use the minLM module, but I can't figure out how to use it: Where to enter in my equation, what subroutines to call, etc. I couldn't find any examples of it being used so I could see what's going on. Is there a relatively simple way to do this?


Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC

Who is online

Users browsing this forum: No registered users and 1 guest

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group