Use Mathematica to generate a representative plot of each of the following
functions. Note: If \(x=p / q\) is rational, \(p / q\) is assumed to be a reduced
fraction.
(a) \(f(x)=\left\\{\begin{array}{l}\ln p, \text { if } x=p / q \text { is
rational; } \\ 0, \text { if } x \text { is irrational }\end{array}\right.\)
\(f(x)=\left\\{\begin{array}{l}\cos q, \text { if } x=p / q \text { is rational
} \\ 0, \text { if } x \text { is irrational }\end{array}\right.\)
(c) \(f(x)=\left\\{\begin{array}{l}1 / p, \text { if } x=p / q \text { is
rational } \\ 0, \text { if } x \text { is irrational }\end{array}\right.\)
d) Challenge: Determine the value(s) of \(x\), if any, for which cach of these
functions are continuous.