3 ms·
That is just one equation. That is always easy I need to solve quadratic equations. It is much harder. Like a1 x y + b1 x + c1 y + d1 = 0 a2 y z + b2 y + c2
by benibela 5y ago
That is just one equation. That is always easy
I need to solve quadratic equations. It is much harder. Like
a1 x y + b1 x + c1 y + d1 = 0
a2 y z + b2 y + c2 z + d2 = 0
a3 z x + b3 z + c3 x + d3 = 0
Given a,b,c,d, solve it for x,y,z.
And in the general case where there are more than 3 equation or more than 3 x,y,z variables.
We can make a undirected graph with the variables as nodes and an edge if there is an equation containing those two variables. Like (x,y), (y,z), (x,z) here. If there is a cycle in that graph, we can combine the equations to obtain a single quadratic equation, which has two solutions for x.
I can search for cycles, and sometimes two cycles restrict each other, such that only one solution for x remains. Sometimes two solutions remain. I do not understand when that happens, and if there is a better way than searching cycles.
(also I can have an additional list of restrictions between the parameters. Like a1 = -c2. This sometimes leads to a cycle canceling itself out, revealing no information about x at all. )