In mathematics, the Weierstrass function was the first example found of a kind of function with the property that it is continuous everywhere but differentiable nowhere. Almost all continuous functions are nowhere differentiable, and this property is both stable and generic. Weierstrass functions are defined by