I'm trying:
Context("Numeric");
# INITIALIZATION
Context()->variables->add(h=>'Real', E=>Real, i=>Real);
$num = random(1,5,1);
$alt1 = Formula("E_i = h^$num");
$alt2 = Formula("|E_i| = h^$num");
$alt3 = Formula("|E_i| \leq K h^$num for some constant \(K\)");
$radio = new_multiple_choice();
$radio->qa("This means that", "$alt1");
$radio->extra($alt2);
$radio->makeLast($alt3);
# QUESTION
TEXT(beginproblem());
Context()->texStrings;
BEGIN_TEXT
$BR \{ $radio->print_q() \} \{ $radio->print_a() \}
Etc. But clearly this is not working. How do I form the alternatives so that they can combine TeX markup along with a snippet that's a formula?I'm blind as to how to combine the various forms.