Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

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

Posted on 2014-10-16
1
Medium Priority
?
281 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 2000 total points
ID: 40384756
Seems that there is a package for that:

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

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

This article will inform Clients about common and important expectations from the freelancers (Experts) who are looking at your Gig.
We are witnesses that everyone is saying that our children shouldn't "play" with a technology because it is dangerous. This article is going to prove that they are wrong.
The viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

971 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