%% quiz questions on the topic of kepler orbits

\element{minimalTheory}{
	\begin{questionmult}{qMone}
	Select your answers.
	\defaultScoringM
	\begin{choices}
		\correctchoice{Correct}
		\correctchoice{Correct}
		\correctchoice{Correct}
		\wrongchoice{Wrong}
		\wrongchoice{Wrong} 
	\end{choices}
	\end{questionmult}
}

\element{minimalTheory}{
	\begin{questionmult}{qMtwo}
	Select your answers
	\defaultScoringM
	\begin{choices}
		\correctchoice{Correct}
		\correctchoice{Correct}
		\correctchoice{Correct}
		\wrongchoice{Wrong}
		\wrongchoice{Wrong} 
	\end{choices}
	\end{questionmult}
}

\element{minimalTheory}{
	\begin{question}{qSone}
	Select your answer
	\defaultScoringS
	\begin{multicols}{2}
	\begin{choices}
		\correctchoice{Correct}
		\wrongchoice{Wrong}
		\wrongchoice{Wrong}
		\wrongchoice{Wrong}
		\wrongchoice{Wrong}
		\wrongchoice{Wrong}
	\end{choices}
	\end{multicols}
	\end{question}
}

\element{minimalTheory}{
	\begin{question}{qStwo}
	Select your answer
	\defaultScoringS
	\begin{multicols}{2}
	\begin{choices}
		\correctchoice{Correct}
		\wrongchoice{Wrong}
		\wrongchoice{Wrong}
		\wrongchoice{Wrong}
		\wrongchoice{Wrong}
		\wrongchoice{Wrong}
	\end{choices}
	\end{multicols}
	\end{question}
}

\element{minimalOrbits}{
\begin{question}{qOone}
	Select your answer
	\defaultScoringS
	\begin{multicols}{2}
	\begin{choices}
		\correctchoice{Correct}
		\wrongchoice{Wrong}
		\wrongchoice{Wrong}
		\wrongchoice{Wrong}
		\wrongchoice{neither, because reasons.}
	\end{choices}
	\end{multicols}
	\end{question}
}

\element{minimalOrbits}{
\begin{question}{qOtwo}
	Select your answer
	\defaultScoringS
	\begin{multicols}{2}
	\begin{choices}
		\correctchoice{Correct}
		\wrongchoice{Wrong}
		\wrongchoice{Wrong}
		\wrongchoice{Wrong}
		\wrongchoice{neither, because reasons.}
	\end{choices}
	\end{multicols}
	\end{question}
}

\element{minimalOrbits}{
\begin{question}{qOthree}
	Select your answer
	\defaultScoringS
	\begin{multicols}{2}
	\begin{choices}
		\correctchoice{Correct}
		\wrongchoice{Wrong}
		\wrongchoice{Wrong}
		\wrongchoice{Wrong}
		\wrongchoice{neither, because reasons.}
	\end{choices}
	\end{multicols}
	\end{question}
}

\element{minimalOrbits}{
\begin{question}{qOfour}
	Select your answer
	\defaultScoringS
	\begin{multicols}{2}
	\begin{choices}
		\correctchoice{Correct}
		\wrongchoice{Wrong}
		\wrongchoice{Wrong}
		\wrongchoice{Wrong}
		\wrongchoice{neither, because reasons.}
	\end{choices}
	\end{multicols}
	\end{question}
}

\element{minimalSkill}{
	\begin{question}{minimalInterval}
		\FPeval\FOne{ trunc(1.0 + trunc(random * 3,0),0) }
	\FPeval\FTwo{ trunc(5.0 + 2*trunc(random * 2,0),0) }
	\FPeval\RMin{ (trunc(2 + random * 4,1)) }
	\FPeval\RMax{ ((FOne + FTwo) / (FTwo - FOne) * RMin) }
	\calcQuestion{} What is half the right answer to life, the universe, and all the rest? Select the right interval.~(5 points)
	\scoring{e=0,v=0,b=5,m=0}
	\begin{multicols}{4}
	\begin{choices}[o]
		\AMCIntervals{21}{2}{25}{2}
	\end{choices}
	\end{multicols}
	\end{question}
}

\element{minimalSkill}{
	\begin{questionmultx}{minimalNumChoice}
	\FPeval\FOne{ trunc(1 + trunc(random * 3,0),0) }
	\FPeval\FTwo{ trunc(5 + 2*trunc(random * 2,0),0) }
	\FPeval\RMin{ trunc(2 + random * 4,1) }
	\FPeval\RMax{ ((FOne + FTwo) / (FTwo - FOne) * RMin) }
	\calcQuestion{} What is half the right answer to life, the universe, and all the rest? Calculate the value to one decimal.~(5 points)
	\AMCnumericChoices{21}{digits=3,decimals=1,sign=true,
		borderwidth=0pt,backgroundcol=white, exact=2, approx=5, 
		scoreexact=5, scoreapprox=3}
	\end{questionmultx}
}

\def\insertGraphquestionMinimal
{
    \textbf{Consider the following effective potential:}\\       % Header to be displayed before question A
    \FPeval\Rcirc{ trunc(2+5*random,0)/2 }

    \FPeval\EllOne{1.5*\Rcirc*(1-0.5774)}	% E= -1/3
    \FPeval\EllTwo{1.5*\Rcirc*(1+0.5774)}
    \FPeval\HypOne{0.4580*\Rcirc}	% E = + 0.2
	\begin{center}
	\begin{tikzpicture}
		\begin{axis}[xlabel={$r~(\mathrm{AU})$}, ylabel={$U_\mathrm{eff}~\textrm{(arbitrary units)}$},
				ymin=-0.55, ymax=0.55, xmin = 0, xmax = 7.5, minor x tick num ={3}]
			\addplot [black, domain=0.2:7.5, samples=75] 
			  {\Rcirc*(-1/x+\Rcirc/2/x^2)};
			\addplot+[magenta]
				coordinates {(\HypOne,0.2) (8,0.2)};
			\addplot+[green]
				coordinates {(\EllOne,-0.33) (\EllTwo,-0.33)};
			\legend{$U_\mathrm{eff}$,orbit A, orbit B}
		\end{axis}
	\end{tikzpicture}
	\end{center}
    %\vspace*{.5cm}

    \cleargroup{minimalGraphQuestion}

	\shufflegroup{minimalGraphTheory}
	\shufflegroup{minimalGraphCalc}
	\copygroup{minimalGraphTheory}{minimalGraphQuestion}
	\copygroup[1]{minimalGraphCalc}{minimalGraphQuestion}
    \shufflegroup{minimalGraphQuestion}
    \insertgroup{minimalGraphQuestion}      % This inserts sub-questions for main question A.
}

\element{minimalGraphTheory}{
	\begin{question}{mGQ1}
	Select your answer.
	\defaultScoringS	
	\begin{multicols}{2}
	\begin{choices}
		\correctchoice{Correct}
		\wrongchoice{Wrong}
		\wrongchoice{Wrong}		
		\wrongchoice{Wrong}		
		\wrongchoice{Wrong}
	\end{choices}
	\end{multicols}
	\end{question}
}

\element{minimalGraphCalc}{
	\scoring{b=2}
	\begin{question}{mGInterval}
	How big is $\pi$? Select the right interval.~(2 points)
	\begin{choiceshoriz}[o]
		\AMCIntervals{3.14}{0.75}{3.25}{0.5}
	\end{choiceshoriz}
	\end{question}
}

\element{minimalGraphCalc}{
	\begin{questionmultx}{mGNumChoice}
	How big is $\pi$?~(2 points)
	\AMCnumericChoices{3.14}{digits=2, decimals=1, sign=true,
		exact=1, approx=2,scoreexact=2, scoreapprox=1,
		borderwidth=0pt,backgroundcol=white}
	\end{questionmultx}
}

%%EOF