First of all, I know that these threads exist! So bear with me, my question is not fully answered by them.
As an example assume we are in a 4-dimensional vector space, i.e R^4
. We are looking at the two linear equations:
3*x1 - 2* x2 + 7*x3 - 2*x4 = 6
1*x1 + 3* x2 - 2*x3 + 5*x4 = -2
The actual questions is: Is there a way to generate a number N
of points that solve both of these equations making use of the linear solvers from NumPy etc?
The main problem with all python libraries I have tried so far is: they need n
equations for a n
-dimensional space
Solving the problem is very easy for one equation, since you can simply use n-1
randomly generated vlaues and adapt the last one such that the vector solves the equation.
My expected result would be a list of N
"randomly" generated points that solve k
linear equations in an n
-dimensional space, where k<n
.