Results 1 to 3 of 3
  1. #1
    tyang is offline Member
    Join Date
    Jan 2010
    Posts
    44
    Rep Power
    0

    Default linear systems of equations

    Does anyone know the package for solving the linear systems of equations?
    For example, as Ax = b, where A is a matrix and x and b are vectors. I want to know x based on A and b.

  2. #2
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,372
    Blog Entries
    1
    Rep Power
    20

    Default

    Read more about matrix-toolkits-java. I've use it one of my project for different purpose. Look at it and give a try.

  3. #3
    JosAH's Avatar
    JosAH is offline Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    13,336
    Blog Entries
    7
    Rep Power
    20

    Default

    Quote Originally Posted by tyang View Post
    Does anyone know the package for solving the linear systems of equations?
    For example, as Ax = b, where A is a matrix and x and b are vectors. I want to know x based on A and b.
    There are many ways to skin a cat but may I suggest a LUP decomposition? Google is your friend here. A sketch of the method is like this:

    1) Find L and U such that LU = PA where L is a lower- and U an uppertriangular matrix and P is a simple row permutation matrix.

    2) For a value of b and Ax = b ==> PtLUx = b ==> LU = Pb;

    3) solving for U is a simple backsubstitution and solving for L is a simple forward substitution.

    kind regards,

    Jos

Similar Threads

  1. Finding the intercept using two equations.
    By MapleLeafRag in forum New To Java
    Replies: 1
    Last Post: 12-03-2009, 08:32 PM
  2. Solving this equations problem in Java
    By matt_well in forum New To Java
    Replies: 17
    Last Post: 08-30-2008, 09:05 PM
  3. Hash table with linear probing
    By Java Tip in forum java.lang
    Replies: 0
    Last Post: 04-12-2008, 08:43 PM
  4. Help me(Linear Multiobjective programming)
    By vinaytvijayan in forum Advanced Java
    Replies: 2
    Last Post: 01-22-2008, 07:24 AM
  5. equations
    By Peter in forum New To Java
    Replies: 2
    Last Post: 07-04-2007, 06:15 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •