I'm not a mathematician and I'm facing a problem with those equations that I found in a book of history of colorscience.
The equations were created by MacAdam to transform the classical colorimetric diagram of the CIE into something better.
The CIE diagram plots chromaticity with 2 coordinates x,y
MacAdams plots the transformed chromaticities D,M
While it's easy to calculate D,M with given x,y (see codes below),
I find it impossible so far to do the opposite, i.e., to find the reverse formulae that will compute x,y with given D,M
Do you have any idea of how this could be done? Thanks
The transformation from $x,y$ to $D,M$ is as follows:
$$a = \frac{10x}{2.4x+34y+1}\\ b = \frac{10y}{2.4x+34y+1}\\ D = 3751a^2-10a^4-520b^2+13295b^3+32327ab-25491a^2b-41672ab^2+10a^3b-5227\sqrt a+2952a^\frac14\\ c = \frac{10x}{42y-x+1}\\ d = \frac{10y}{42y-x+1}\\ M = 404d - 185d^2+52d^3+69c(1-d^2)-3c^2d+30cd^3$$
Hello and welcome to the site!
The question you are asking has no simple solution. Basically, you have some mapping of pairs of real numbers into some other pair of real numbers, $(D,M)=F(x,y)$ and are asking to find an inverse of $F$. There are many problems with this, the main two being:
That said, all is not lost! There are ways of solving the nonlinear system. They will not return an exact result but only an approximation, and will not be as quick as simply evaluating one expression. As I do not know what programming language you will be using, I suggest you look into any package or library you can find for solving nonlinear systems of equations. For example, MATLAB has a range of solutions for your problem, as do many other programs.