Let

and

be real numbers
(usually taken as

and

). The Dirichlet function is defined by
and is discountinuous
everywhere. The Dirichlet function can be written analytically as
Because the Dirichlet function cannot be plotted without producing a solid blend of lines, a modified version can be defined as