Solved

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

Posted on 2014-10-16
1
219 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
Comment Utility
Seems that there is a package for that:

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

Featured Post

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

The purpose of this article is to demonstrate how we can use conditional statements using Python.
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 goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…
The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.

772 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now