Why does this line causes undefined control sequence error?
\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage{amsmath}
\title{Amsmath example}
\author{ShareLaTeX Templates}
\date{June 2017}
\begin{document}
\maketitle
\section{Introduction}
$c \in \interval[{3q/8, 7q/8})$
\end{document}

\interval(or causes it to be defined). So the error we get is pretty natural. Maybe you were hoping to use the command from https://tex.stackexchange.com/a/135529/35864? In that case you just forgot to include the relevant code in your preamble. – moewe Mar 15 '20 at 06:31intervalpackage, but the syntaxt uses two arguments – Bernard Mar 15 '20 at 12:03