Description Usage Arguments Examples
Template for exact numerical question
1 2 3 | wq_numerical(output = "explain the question here",
correct_answer = "42", answer_tests = "omnitest(correctVal=42)",
hint = "hint")
|
output |
Text that is displayed to the user. |
correct_answer |
The numerical answer to the question. |
answer_tests |
An internal function from |
hint |
A string that is printed to the console if the user answers this question incorrectly. |
1 2 3 4 5 6 7 8 9 10 | ## Not run:
# While writing a new lesson by hand just use:
wq_numerical()
# If converting from another format to a swirl course you may want to sue the
# API:
wq_numerical("The golden ratio is closest to what integer?",
"2", "omnitest(correctVal=2)", "It's greater than 1 and less than 3.")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.