The problems of definition domain, break point, or and even etc often occur in elementary function.
The classical Particle swarm optimization (PSO) algorithm is a powerful method to find the minimum of a numerical function, on a continuous definition domain.