Apologies in advance as maths has never been my strong point (I'm not even sure which tag to use).
I'm developing some software that uses some equations to convert values being read from a hardware device. There are three variations, each with a different number of coefficients:-
$$ y = a + b * x\\ y = a + b * x + c * x^2\\ y = a + b * x + c * x^2 + d * x^3$$
(where x is the value I want to convert, and $a$, $b$, $c$, $d$ are known coefficients).
I now need to create "inverted" versions of each these equations, i.e. I want to calculate $x$ from a known $y$ (so I can convert a user-supplied value and send it back to the hardware). I think I'm okay with the first one:-
$$x = \frac{y - a}{b}$$
But I've no idea how to solve the others. Any help would be much appreciated.