I have the following equation to be solved for $m$
$\frac{K(1-m)}{K(m)} = a$
where $a$ is known value, $K(m)$ is the complete elliptic integral of the first kind. $K(m)$ can be expressed as an infinite series which I found on Wikipedia https://en.wikipedia.org/wiki/Elliptic_integral
I don't know how to go about solving this equation.
If
$$ f(m) := \frac{K(1-m)}{K(m)}, \tag{1}$$ then $$ f(m) = -\frac{\log(q(m))}{\pi} \tag{2}$$ where $\, q(m) \equiv q(k^2) \,$ is the Jacobi elliptic nome $\,q\,$ defined as
$$ q(m) := e^{-\pi K(1-m)/K(m)} = e^{-\pi f(m)}. \tag{3} $$
Given $\, f(m), \,$ to find $\, m, \,$ use equation $\,(3)\,$ to compute $\, q(m). \,$ Then $$ m = \frac{ \theta_2(0,q)^4} {\theta_3(0,q)^4} = 16q - 128q^2 + 704q^3 +\dots \tag{4} $$ where $\,\theta_2, \, \theta_3\,$ are Jacobi theta functions. TheOEIS sequence A115977 has more information about the $q$ series expansion of $m$.
As a numerical example, assume $\,f(m) = 1.6.\,$ Then $$ \theta_2 \approx 0.569243 , \, \theta_3 \approx 1.013123 , \, q \approx 0.0065614, \\ 16q - 128q^2 + 740q^3 \approx 0.0996652, \, m \approx 0.0996653.$$