The base CD, the diagonal BD and the side AD of trapezoid ABCD have length p. The leg BC is q. Find the length of the diagonal AC.
Two real numbers p and q.
Print the length of the diagonal AC with 4 decimal digits.
Example 1