$XYZ$ a triangle with $XY=YZ.$
$D$ middle of $XY,$ $G$ isobarycenter of $XYZ.$
a circle $O,$ with center $D, XY$ are on $O.$
a circle $O',$ with center $G,$ $X$ and $Z$ are on $O'.$
1/the circumference O=O',
Given the above information, what is the value of the angle XYZ?

Following is an alternate derivation of the formula using more trigonometry.
Let $E$ be the midpoint of $XZ$, let $\theta$ be the angle $\measuredangle GXE$ and $\varphi$ be the angle $\measuredangle XYZ$. If one scale the whole figure such that $|GX| = 1$, then using the fact $\measuredangle XEG$ is a right angle, we have:
$$|XE| = \cos\theta\quad\text{ and }\quad |GE| = \sin\theta$$
Since $G$ is the isobarycenter, $|YE| = 3|GE| = 3\sin\theta$, This implies
$$\tan\frac{\varphi}{2} = \frac{|XE|}{|YE|} = \frac{1}{3\tan\theta}$$
The condition $|GX| = |DX| = |DY|$ implies $|XY| = 2$. Since $|XY|^2 = |XE|^2 + |YE|^2$, we get:
$$2^2 = \cos^2\theta + (3\sin\theta)^2 = 1 + 8\sin\theta^{\,2} \implies \sin\theta = \sqrt{\frac38} \implies \tan\theta = \sqrt{\frac35}$$ As a result, we get $$\varphi = 2 \tan^{-1}\left(\frac{1}{3\sqrt{\frac35}}\right) = 2\tan^{-1}\sqrt{\frac{5}{27}}$$