Solved

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

Posted on 2014-10-16
243 Views
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
Question by:goliveuk
[X]
###### Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

• Help others & share knowledge
• Earn cash & points
1 Comment

LVL 27

Accepted Solution

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

Question has a verified solution.

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

This is about my first experience with programming Arduino.
In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
The viewer will be introduced to the technique of using vectors in C++. The video will cover how to define a vector, store values in the vector and retrieve data from the values stored in the vector.
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…
###### Suggested Courses
Course of the Month8 days, 15 hours left to enroll