# Examples for Input Problem Text¶

### Example 1¶

\begin{question}

\type{input.text}

\begin{variables}
\string{f}{b + c - 2}
\randint{x}{2}{5}
\end{variables}

\text{Simplify the expression, remove all brackets: \\
$-(\var{x} a -(b + c - (5 - (\var{x} a +3))))$}

\inputAsString{g}
\solution{f}
\checkStringsForRelation{count((,g) + count(),g)=0 AND equal(g,f)}

\end{question}


### Example 2¶

\begin{question}

\type{input.text}

\begin{variables}
\string{f}{x^2 + 2x + 1}
\end{variables}

\text{Expand the expression $(x+1)^2$ }

\inputAsString{g}
\solution{f}
\checkStringsForRelation{equal(g,f)}

\end{question}


### Example 3¶

\begin{question}
\type{input.text}

\begin{variables}
\string{f}{(\sin(x))^2+(\cos(x))^2}
\string{f1}{1}
\end{variables}

\text{Write the function given by the expression \\
$\var{f}$ (you may simplify it) }

\inputAsString{g}
\solution{f1} % or f2 or f3
\checkStringsForRelation{equal(g,f)}
\checkAsFunction{x}{1}{5}{100}

\end{question}


### Example 4¶

\begin{question}

\begin{variables}
\string{f}{happy}
\end{variables}

\text{Give a word with five letters}
\explanation{the number is not 5, \\