Check that the automatic solution generation function is well written. It is useful when writing exercices
1 | check_solution(gen_sol, params, solution)
|
gen_sol |
function that generates the solution |
params |
named list of arguments of gen_sol |
solution |
the expected solution that should be calculated when calling gen_sol with the parameters params |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.