The piecewise function is .
If is a rational then the function is .
If is a irrational then the function is .
.