Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

I've figured it out now. Syntactically, we can treat r, g, b as if they were numbers. I had not anticipated that at first. So this is how it works:

var('r g b x')
solve([r == x^3 * (b + g + 1), g == x^2 * (b + r + 1), b == x * (r + g + 1)], [r, g, b])