Static functions are not a problem. In fact, many of the functions that are commonly used in scientific software are pure mathematical functions, such as sin() , sqrt() , log() .
Static variables, on the other hand, are an indicator of the general condition and should be avoided.
source share