Ed S Ed S - 4 months ago 16
LaTeX Question

How can I write this function (image) in Latex?

How can I write this function (image) in Latex?

enter image description here

Answer

This should lay a sufficient foundation:

enter image description here

\documentclass{article}

\setlength{\parindent}{0pt}% Just for this example
\begin{document}

$f \colon \{0,1\}^N \rightarrow \{0,1\}^M$

$f \colon \{0,1\}^N \mapsto \{0,1\}^M$

\end{document}

You can change the spacing around : (or \colon) as needed, perhaps using f~\colon~.