flat assembler
Message board for the users of flat assembler.

Index > Heap > Linear equation formula solver?

Author
Thread Post new topic Reply to topic
Borsuc



Joined: 29 Dec 2005
Posts: 2466
Location: Bucharest, Romania
Borsuc
Anyone know such application available out there?

Let me explain:

I need some application to solve linear equation "formulas" for me -- i.e output is of the form (A+B)(C+D) or similar (not necessarily optimal, I can simplify it later myself). The main important idea is that it will operate on "symbols" rather than calculate digits.

All equations are solvable for all unknowns (i.e if we put it in a matrix, it has nxn rows and columns).

Why do I need this? I have some points (for the sake of an example, let's say 4 points), at specific locations (known), and I want to find out the coefficients for a function that walks through them.

Note: I might also need functions with multiple arguments (like bilinear function), so 4 points doesn't always mean a 3rd degree polynomial Wink

Here the example equation (^ denotes power):

Code:
Ax^3 + Bx^2 + Cx + D = p1
Ay^3 + By^2 + Cy + D = p2
Az^3 + Bz^2 + Cz + D = p3
Aw^3 + Bw^2 + Bw + D = p4    


Now I wish to find a formula to find out the A,B,C,D unknowns (coefficients). x,y,z,w and p1,p2,p3,p4 are known, and once I have the formula, I can replace them with their values (actually, they're variables Wink ) and calculate the coefficients.

The question is, is such program available out there? (I might possibly need 4th or even higher degree polynomials, for more points, or multi-dimensional functions as well).

A bilinear function example:

Code:
Ax + By + Cxy + D = p1
Au + Bv + Cuv + D = p2
Ao + Bp + Cop + D = p3
An + Bm + Anm + D = p4    
Again, the unknowns are A,B,C,D and the others are variables with some values stored, and I need some kind of formula for this.


A link to some program would be nice Wink

If there is no such program available, then links to these 2 function examples (or even more functions) with written formulas is welcomed as well. Web page, .pdf, database, whatever Smile

Yes I know I could solve them myself, but with substitution it's so hard and even Cramer's rule gets complicated on such equations, especially if we move on to higher degrees
Post 25 Jul 2007, 18:54
View user's profile Send private message Reply with quote
MHajduk



Joined: 30 Mar 2006
Posts: 6038
Location: Poland
MHajduk
The_Grey_Beast wrote:
Anyone know such application available out there?
For example Maple or Mathematica. Smile
Post 25 Jul 2007, 19:11
View user's profile Send private message Visit poster's website Reply with quote
Borsuc



Joined: 29 Dec 2005
Posts: 2466
Location: Bucharest, Romania
Borsuc
Thanks, I'll definetely take a look into them Wink
Post 25 Jul 2007, 19:55
View user's profile Send private message Reply with quote
Jack



Joined: 16 Feb 2005
Posts: 21
Jack
some free CAS Maxima , axiom and yacas
Post 25 Jul 2007, 22:43
View user's profile Send private message Reply with quote
Borsuc



Joined: 29 Dec 2005
Posts: 2466
Location: Bucharest, Romania
Borsuc
Lots of thanks. Maxima seems very interesting, I'll try it tomorrow Very Happy
Post 26 Jul 2007, 19:53
View user's profile Send private message Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
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 vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Copyright © 1999-2020, Tomasz Grysztar. Also on YouTube, Twitter.

Website powered by rwasa.