👉 In computer science and mathematics, a "patchiest" function is a function that has as many local minima (or maxima) as possible. A common example of a patchiest function is the function f(x) = x^2 in the real numbers. A function is said to be patchiest if all its local minima or maxima are equal, which means it minimizes both the absolute value and the square root of x. This property is often used in optimization problems where one