Formula
$$h= r-\dfrac{1}{2}\sqrt{4r^2-a^2}, h < r $$
Variables
h
→
Height of a segment
r
→
Circle radius
a
→
Circle chord