Generate a numbered sequence of arithmetic problems
Source:R/generate_math_problems.R
generate_math_problems.Rdgenerate_math_problems() generates one problem per target answer,
numbered in order.
Arguments
- targets
Integer vector of desired answers (1-100), in the order the problems should be numbered.
- op
One of
"auto"(default),"add","subtract", or"multiply"."auto"picks subtraction whentarget < 50, and otherwise picks addition or multiplication at random (only considering multiplication whentargetactually has a suitable factor pair, e.g. never for a primetarget).- max_factor
Largest multiplication factor to consider.