I have a simple problem with Julia: I would like to find the equation of an hyperplane passing through n points in dimension n. Is there any simple way to do that? I was solving a linear system of equations, however it can be non-singular and in this case, Julia returns an error. Is there any known way to solve parametric or non-singular systems of equations in Julia?
As an example, consider the 3d points [1 0 0], [0 0 1] and [1 0 1]. I would like to have y = 0 as a solution, via the vector [0 1 0 0] of coefficients.
In sage
a,b,c,d = var('a b c d')
f1 = a + d
f2 = a + c + d
f3 = c + d
solve([f1==0,f2==0,f3==0],a,b,c,d)
gives
[[a == 0, b == r1, c == 0, d == 0]]
Thank you very much for your help.