Sorry, but this can't be done (at least to perfect accuracy). Defining $$\chi_a(x) =\begin{cases}1, & x = a\\0,& x \ne a\end{cases}$$
This is a function which is discontinuous at $a$. Assuming that what you are allowed to use are
- Constant functions $f(x) = c\ \forall x$
- $f(x) = x$
- $|x|$
- $\cos x$
- $\sin x$
- $\tan x$
- $\arccos x$
- $\arcsin x$
- $\arctan x$
- $e^x$
- $\log x$
And the operations of
- addition
- subtraction
- multiplication
- division
- function composition
Unfortunately, no combination of functions using the operations can give you what you want. The problem is that every starting function is continuous everywhere it is defined. And every operation preserves continuity everywhere the result is defined (division by $0$ is undefined, even if the numerator is $0$). The lack of definition removes values from the domain, and there is no way with these functions of extending the domain to include them again. Since $\chi_a$ is defined everywhere, such restrictions cannot be allowed. So you must stick to where continuity is preserved.
However, if you have at least one starting function available that is defined but discontinuous at some point, then it is likely possible. So examine your function choices carefully and determine if they are all continuous. Also examine if there is some operation available not mentioned above. Any possibility of piecewise definition would of course make it easy.