User:Midpoint Function