I have three known values: a, b, c, and a fourth unknown value: D.

I know that (a, b) has the same arithmetic-geometric mean as (c, D).

I.e.:

What is the quickest way to derive the unknown value D from this info? Do I just have to "eyeball" it iteratively, or is there a quicker more effective method?

Thanks.