Solved

How to solve a linear equation with n variables using PHP Open source code

Posted on 2014-10-16
1
225 Views
Last Modified: 2014-11-07
I'm in need of help if it would be possible to help me out.

I'm looking for a way to solve a linear equation with n variables using a PHP Open source code. For example:

1.x1 + 1.x2 + 4.x3 + 8.x4 + 12.x5 + 22.x6 ... + 13.xn = y1
2.x1 + 3.x2 + 8.x3 + 6.x4 + 28.x5 + 28.x6 ... + 11.xn = y2
6.x1 + 1.x2 + 1.x3 + 3.x4 + 34.x5 + 34.x6 ... + 21.xn = y3
...
8.x1 + 4.x2 + 3.x3 + 1.x4 + 21.x5 + 13.x6 ... + 18.xn = yn

Could somebody please help me out, I would be really gratefull. I have already spent 2 days looking for this but to no avail.

Kind regards.
0
Comment
Question by:goliveuk
1 Comment
 
LVL 27

Accepted Solution

by:
Lukasz Chmielewski earned 500 total points
ID: 40384756
Seems that there is a package for that:

http://php.net/manual/en/lapack.solvelinearequation.php
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The purpose of this article is to demonstrate how we can use conditional statements using Python.
Displaying an arrayList in a listView using the default adapter is rarely the best solution. To get full control of your display data, and to be able to refresh it after editing, requires the use of a custom adapter.
The viewer will learn how to user default arguments when defining functions. This method of defining functions will be contrasted with the non-default-argument of defining functions.

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question