I'd like to create a multiple formula question, but I'm not sure how.

In the creation of a formula question in Quizzes.next, is states "Next, write the formula or formulas used to compute the correct answer. Use the same variable names listed above. (e.g., "5 + x")". Note the "formula or formulas".

Here's my minimum working example:

question:

`x` + `y` = ?

`x`^2+`y`^2=?

`x`-`y`=?

formula definition:

x+y

x^2+y^2

x-y

However, when I test this out, only the last line of the formula definition is the accepted answer. I would like the students to provide three answers, one for each line of the formula definition. Am I mistaking the formula functionality here? It seems to imply that this should be possible.

Tim Wilson

I haven't used the quizzes.next portion yet, but here's how it works in the current version. A formula question only allows a single response. Math teachers want more, but it never came. I don't think they've accomplished that with quizzes.next, either.

The formulas are so you can break complex items into simpler steps, not so that you can have multiple answers. Multiple answers are not supported with numeric or formula questions. There have been several feature requests to get that.

Let's say you have a question like: [p1]% of [n1] women said "yes" and [p2]% of [n2] men said "yes". Find the standard error of the estimate when the proportions are not pooled.

v1=p1/100*(1-p1/100)/n1

v2=p2/100*(1-p2/100)/n2

se=sqrt(v1+v2)

only the last answer is the correct one, but you can use v1 and v2 in the last calculation. The assignment on the last one is optional. Failure to assign the results to a variable on any other expressions renders it useless.

OR

In samples of [n1] women and [n2] men, there were [x1] women and [x2] men who said "yes".

Find the pooled standard error of the proportion.

p=(x1+x2)/(n1+n2)

se=sqrt(p*(1-p)*(1/n1+1/n2))