Solved

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

Posted on 2014-10-16
1
224 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

The Eight Noble Truths of Backup and Recovery

How can IT departments tackle the challenges of a Big Data world? This white paper provides a roadmap to success and helps companies ensure that all their data is safe and secure, no matter if it resides on-premise with physical or virtual machines or in the cloud.

Question has a verified solution.

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

Suggested Solutions

Computer science students often experience many of the same frustrations when going through their engineering courses. This article presents seven tips I found useful when completing a bachelors and masters degree in computing which I believe may he…
This article will inform Clients about common and important expectations from the freelancers (Experts) who are looking at your Gig.
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …

821 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