I thought I could find the circumference of this water ellipse using Pythagoras, but I get a slightly higher number when I use online ellipse circumference calculators. I have stared down into my cup for an hour trying to figure out why, but the cup did unfortunately not offer me any answers... hopefully someone here can.
By Pythagoras I mean unfolding the cylinder into a rectangle - as half of the ellipse travels from the rim to the bottom I thought the ellipse would turn into the half-rectangle diagonal, i.e. the hypotenuse, to be solved with $\pi$$r$ as the base and $length$/$height$ of the cylinder. But I get a slightly different answer using the ellipse's minor and major axis in online calculators. Should I not be getting the same answer?
Thank you

For a cylinder of radius $r$ and height $h$, the circumference of the half-tilted elliptical rim is $$2\int_0^1\sqrt{\frac{4r^2}{1-x^2}+ h^2} \ dx$$ On the other hand, the Pythagorean calculation yields $2 \sqrt{\pi^2r^2+ h^2}$, which is always shorter. Note that it is the limiting value of the integral for either $r\ll h$ or $r\gg h$.