New Reply

How to make a substitution-based equation solver?

 
Share Thread Thread Tools
Aug3-12, 09:46 AM   #1
 

How to make a substitution-based equation solver?


I have a fluid dynamics problem I need to solve. There are 6 equations, and 6 unknowns, but the form of the equations are non-linear. Some unknown variables are not only multiplied by coefficients, but also by other unknown variables. Thus, I can't just do a Gaussian elimination matrix. I'm trying to come up with a way to write a program that uses substitution to solve non-linear algebraic equations. (I'm using Matlab, but I'm also somewhat familiar with Python, if need be).

My question is this: is this a topic that has a wealth of information on it? Has it been done before, is it common practice? I need to know if I'm reinventing a wheel.

If I am reinventing the wheel that is a substitution-based equation solver, then does anyone know where I can find, say, a sample code that does this?
PhysOrg.com
PhysOrg
science news on PhysOrg.com

>> Ants and carnivorous plants conspire for mutualistic feeding
>> Forecast for Titan: Wild weather could be ahead
>> Researchers stitch defects into the world's thinnest semiconductor
Aug3-12, 07:58 PM   #2
 
Hey OffTheRecord and welcome to the forums.

Maybe something like this? (using Maple)

http://www.maplesoft.com/support/hel...h=solve/system
Aug7-12, 08:40 PM   #3
 
Hmm. Well, not having maple at hand, I may never know. Anything similar in Matlab? Any way to create a solve function like that one?
Aug7-12, 08:53 PM   #4
 

How to make a substitution-based equation solver?


MATLAB is not like Maple in that Maple is a symbolic platform, where-as MATLAB is more to do with a numerical computational platform.

You would have to check the libraries for MATLAB to see if they have general multi-equation (systems of equations or inequalities) solver routines. Personally, I think you might have to implement your own routines that do solutions for very specific kinds of relationships (polynomials etc), because again MATLAB is not designed to be a core symbolic computational platform like Maple.

What you might be able to do is to send commands to the Maple engine to execute and then pipe the results back to MATLAB. You can do this with a bit of programming know how and understanding of calling the Maple Engine, and to be frank, if you need to do this thing a lot for a wide range of functions, this would be the way to go if you have access to Maple already.
New Reply
Thread Tools


Similar Threads for: How to make a substitution-based equation solver?
Thread Forum Replies
Engineering Equation Solver (EES) Engineering Systems & Design 0
Equation solver over Lattice Linear & Abstract Algebra 1
Substitution to make it seperable Differential Equations 2
numerical equation solver General Math 0