// Numbas version: exam_results_page_options {"name": "2.7.1.1 Write down a polynomial", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"name": "2.7.1.1 Write down a polynomial", "tags": [], "metadata": {"description": "

Unmarked question, with advice.

\n

Write down an example of a polynomial of given degree and given variable.

\n

Write down a non-polynomial function.

\n

Explain why a polynomial with a fractional index is not a polynomial.

", "licence": "Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International"}, "statement": "

(a) Write down a polynomial expression of degree $\\var{d}$ with independent variable $\\var{latex(v)}$.

\n

(b) Write down a function which is not a polynomial.

\n

(c) Explain why $\\var{c_poly}$ is not a polynomial.

\n

(d) Write down a polynomial expression of degree $0$ with independent variable $\\var{latex(v)}$.

", "advice": "

(a) For example, $\\var{poly_a}$

\n

(b) For example, $y=\\frac{1}{x}$

\n

(c) Fractional indices such as $\\frac{1}{x}$, $\\sqrt{x}$, and $x^{\\frac{1}{2}}$ are not allowed in a polynomial.

\n

(d) For example, $P(\\var{latex(v)}) = 13$

", "rulesets": {}, "extensions": [], "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {"v": {"name": "v", "group": "Ungrouped variables", "definition": "random('a','b','c','d','t','w','x','y','z')", "description": "

the variable

", "templateType": "anything", "can_override": false}, "d": {"name": "d", "group": "Ungrouped variables", "definition": "random(1..3)", "description": "

the degree

", "templateType": "anything", "can_override": false}, "c_poly": {"name": "c_poly", "group": "Ungrouped variables", "definition": "expression(\n [\"y=\"+random(1..10)+\"+x+x^(1/2)\",\n \"f(x) = \"+random(1..10)+\"-\"+random(1..10)+\"/x\",\n \"g(w)=\"+random(1..10)+\"*w^\"+random(1..4)+\"+\"+random(1..10)+\"*sqrt(w)-\"+random(1..10)\n ][idx]\n)", "description": "", "templateType": "anything", "can_override": false}, "idx": {"name": "idx", "group": "Ungrouped variables", "definition": "random(0..2)", "description": "", "templateType": "anything", "can_override": false}, "poly_a": {"name": "poly_a", "group": "Ungrouped variables", "definition": "simplify(expression(\"f(\"+v+\")=\"+[\n string(random(1..10)), \n random(1..10)+\"*\"+v+\"-\"+\n weighted_random([ [0,0.5], [random(1..10),0.5] ]), \n random(1..10)+\"*\"+v+\"^2-\"+ \n weighted_random([ [0,0.5], [random(1..10),0.5] ])+\"*\"+v+\"-\"+\n weighted_random([ [0,0.5], [random(1..10),0.5 ] ]),\n random(1..10)+\"*\"+v+\"^3+\"+\n weighted_random([ [0,0.5], [random(1..10),0.5]])+\"*\"+v+\"^2-\"+ \n weighted_random([ [0,0.5], [random(1..10),0.5] ])+\"*\"+v+\"-\"+\n weighted_random([ [0,0.5], [random(1..10),0.5] ])\n ][d]\n ),\"all\")", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["v", "d", "c_poly", "idx", "poly_a"], "variable_groups": [], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "information", "useCustomName": false, "customName": "", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always", "contributors": [{"name": "Merryn Horrocks", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/4052/"}]}]}], "contributors": [{"name": "Merryn Horrocks", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/4052/"}]}