| 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])
Copyright Sage, 2010. Some rights reserved under creative commons license. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.