// Numbas version: finer_feedback_settings {"name": "set1", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"variable_groups": [], "variables": {"r": {"templateType": "anything", "group": "Ungrouped variables", "definition": "random(8..15)", "description": "", "name": "r"}, "answer_set4": {"templateType": "anything", "group": "Ungrouped variables", "definition": "answer_set1 and answer_set3", "description": "", "name": "answer_set4"}, "a": {"templateType": "anything", "group": "Ungrouped variables", "definition": "random(8..20)", "description": "", "name": "a"}, "c": {"templateType": "anything", "group": "Ungrouped variables", "definition": "random(3..7)", "description": "", "name": "c"}, "f": {"templateType": "anything", "group": "Ungrouped variables", "definition": "random(10..25)", "description": "", "name": "f"}, "d": {"templateType": "anything", "group": "Ungrouped variables", "definition": "random(-25..-5)", "description": "", "name": "d"}, "g": {"templateType": "anything", "group": "Ungrouped variables", "definition": "r^2", "description": "", "name": "g"}, "b": {"templateType": "anything", "group": "Ungrouped variables", "definition": "a+random(12..30)", "description": "", "name": "b"}, "answer_set1": {"templateType": "anything", "group": "Ungrouped variables", "definition": "set(mod_set(a,b,c))", "description": "", "name": "answer_set1"}, "answer_set2": {"templateType": "anything", "group": "Ungrouped variables", "definition": "set(-r+1..r-1)and set(d..f)", "description": "", "name": "answer_set2"}, "answer_set3": {"templateType": "anything", "group": "Ungrouped variables", "definition": "set(d..f) and(set(d-1..-r-1) or set(r+1..f+1))", "description": "", "name": "answer_set3"}}, "ungrouped_variables": ["a", "b", "c", "answer_set1", "d", "f", "g", "answer_set2", "r", "answer_set3", "answer_set4"], "question_groups": [{"pickingStrategy": "all-ordered", "questions": [], "name": "", "pickQuestions": 0}], "name": "set1", "functions": {"mod_set": {"type": "list", "language": "javascript", "definition": "//returns all integers which are divisible by c betweeen a and b\nvar l=[];\nfor(var i=a;ia) $A=\\{x \\in \\mathbb{N}\\;|\\;\\var{a} \\leq x \\leq \\var{b}\\text{ and } x \\text{ is divisible by }\\var{c}\\}$.
\n$A=\\;$[[0]]
\nb) $B=\\{x \\in \\mathbb{Z}\\;|\\;\\var{d} \\leq x \\leq \\var{f}\\text{ and } x^2 \\lt \\var{g}\\}$.
\n$B=\\;$[[1]]
\nc) $C=\\{x \\in \\mathbb{Z}\\;|\\;\\var{d} \\leq x \\leq \\var{f}\\text{ and } x^2 \\gt \\var{g}\\}$.
\n$C=\\;$[[2]]
\nd) $A \\cap C=\\;$[[3]]
\n\nNote that you input sets in the form set(a,b,c,..,z)
.
For example set(1,2,3)
gives the set $\\{1,2,3\\}$.
The empty set is input as set()
.
Also some labour saving tips:
\nIf you want to input all integers between $a$ and $b$ inclusive then instead of writing all the elements you can input this as set(a..b)
.
If you want to input all integers between $a$ and $b$ inclusive in steps of $c$ then this is input as set(a..b#c)
. So all odd integers from $-3$ to $28$ are input as set(-3..28#2).
Write the following sets in enumerated form.
\nNote that you enter an enumerated set such as $\\{35,67,99\\}$ as set(35,67,99)
.