Examples for Consecutive Error


\begin{problem}

        % global variables
        \begin{variables}
          \randint{Q}{-4}{4}
          \function{x}{Q+1}        
          \function{y}{x+1}        
          \function{z}{y+1}        
        \end{variables}

        \begin{question}
                 \text{\textbf{Step 1}\\ \textit{Let Q = $Q$. Compute x = Q + 1:}}
                  \explanation{Simply add one}
                  \type{input.number}
                  \precision{3}
                  \field{real}

                  \begin{answer}
                    \text{ x = }
                    \solution{x}
                  \end{answer}
        \end{question}

        \begin{question}

                  \begin{variables}
                    \earlierAnswer{x}{1,1}
                  \end{variables}

                  \text{\textbf{Step 2}\\ \textit{Compute y = x + 1,  based on your previous answer:}}
                  \explanation{Simply add one}
                  \type{input.number}
                  \precision{3}
                  \field{real}

                  \begin{answer}
                    \text{ y = }
                    \solution{y}
                  \end{answer}

        \end{question}

        \begin{question}

                  % local variables       
                  \begin{variables}
                    \earlierAnswer{x}{1,1}
                    \earlierAnswer{y}{2,1}
                  \end{variables}

                  \text{\textbf{Step 3}\\ \textit{Compute z = y + 1, based on your previous answer:}}
                  \explanation{Simply add one}
                  \type{input.number}
                  \precision{3}
                  \field{real}

                  \begin{answer}
                    \text{ z = }
                    \solution{z}
                  \end{answer}

        \end{question}

\end{problem}

wikiplot_consErr.png (8.81 KB) Sabine Greiser, 01/09/2014 11:43 AM

Wikiplot_conserr
Add picture from clipboard (Maximum size: 500 MB)