Guide for Developers >
Sandboxes
Examples and sandboxes
Maxima extension
Multiple choice style
Placement test
Multiple choice style
Try the following sandbox, and create a quiz.
\problemset \problem Find the equation $y = f(x)$ for the parabola shown below. \maximacode set_random_state(make_random_state(true)); pick([list]) := block([i], i:random(length(list))+1, return(list[i])); a: pick(-2,1,1/2); x0: pick(-2,0,1); x1: pick(2,3,4); \endmaximacode \begin{center} \maximaplot [a*(x-x0)*(x-x1),x0-1,x1+1] \endmaximaplot \end{center} \multiplechoice \correct \maxima y = expand(a*(x-x0)*(x-x1)) \endmaxima \incorrect \maxima y = expand(-a*(x-x0)*(x-x1)) \endmaxima \incorrect \maxima y = expand((x-x0)*(x-x1)) \endmaxima \incorrect \maxima y = expand(-(x-x0)*(x-x1)) \endmaxima \endmultiplechoice \endproblemset
© TTU Mathematics