Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

To create a numeric TeX question, follow the guidelines here to create a Tex Open question. Rather than using the multiple choice template, calculate the answer in the code portion, as seen below, and set the ans1 variable to your final value. If the question has multiple parts, there will be "ans2", "ans3", etc. variables as well.

 

Wiki Markup
void answer(void)

...


{

...


  /* global double ans1 u={h} */

...


  /* global double hl */

...



  hl = randomStep(1, 5, .5, 2);

...



  ans1 = hl;

...



}