On the Extrema of Functions in the Takagi Class