// Numbas version: exam_results_page_options {"name": "Luis's copy of Intersection of a straight line and a circle", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"name": "Luis's copy of Intersection of a straight line and a circle", "ungrouped_variables": ["a", "c", "b", "d", "g", "f", "s1", "m", "l", "n", "q", "p", "b1", "k", "t"], "variablesTest": {"condition": "", "maxRuns": 100}, "preamble": {"js": "", "css": ""}, "tags": ["SFY0001", "checked2015", "equation of a circle", "equation of a straight line", "quadratic equation"], "rulesets": {"std": ["all", "!collectNumbers", "fractionNumbers", "!noLeadingMinus"]}, "type": "question", "variables": {"d": {"name": "d", "templateType": "anything", "description": "", "definition": "random(-5..5)", "group": "Ungrouped variables"}, "s1": {"name": "s1", "templateType": "anything", "description": "", "definition": "random(-1,1)", "group": "Ungrouped variables"}, "b": {"name": "b", "templateType": "anything", "description": "", "definition": "b1+d", "group": "Ungrouped variables"}, "m": {"name": "m", "templateType": "anything", "description": "", "definition": "if(aFind the points of intersection of a straight line and a circle.

", "notes": "\n \t\t\n \t\t"}, "parts": [{"prompt": "

([[0]],[[1]]) and ([[2]],[[3]])

", "gaps": [{"checkvariablenames": false, "vsetrange": [0, 1], "vsetrangepoints": 5, "answersimplification": "std", "type": "jme", "expectedvariablenames": [], "scripts": {}, "marks": 1, "checkingaccuracy": 0.001, "checkingtype": "absdiff", "answer": "{m}", "showCorrectAnswer": true, "showpreview": true, "notallowed": {"message": "

Input all numbers as fractions or integers as appropriate and not as decimals.

", "strings": ["."], "showStrings": false, "partialCredit": 0}}, {"checkvariablenames": false, "vsetrange": [0, 1], "vsetrangepoints": 5, "answersimplification": "std", "type": "jme", "expectedvariablenames": [], "scripts": {}, "marks": 1, "checkingaccuracy": 0.001, "checkingtype": "absdiff", "answer": "{n}", "showCorrectAnswer": true, "showpreview": true, "notallowed": {"message": "

Input all numbers as fractions or integers as appropriate and not as decimals.

", "strings": ["."], "showStrings": false, "partialCredit": 0}}, {"checkvariablenames": false, "vsetrange": [0, 1], "vsetrangepoints": 5, "answersimplification": "std", "type": "jme", "expectedvariablenames": [], "scripts": {}, "marks": 1, "checkingaccuracy": 0.001, "checkingtype": "absdiff", "answer": "{p}", "showCorrectAnswer": true, "showpreview": true, "notallowed": {"message": "

Input all numbers as fractions or integers as appropriate and not as decimals.

", "strings": ["."], "showStrings": false, "partialCredit": 0}}, {"checkvariablenames": false, "vsetrange": [0, 1], "vsetrangepoints": 5, "answersimplification": "std", "type": "jme", "expectedvariablenames": [], "scripts": {}, "marks": 1, "checkingaccuracy": 0.001, "checkingtype": "absdiff", "answer": "{q}", "showCorrectAnswer": true, "showpreview": true, "notallowed": {"message": "

Input all numbers as fractions or integers as appropriate and not as decimals.

", "strings": ["."], "showStrings": false, "partialCredit": 0}}], "type": "gapfill", "showCorrectAnswer": true, "scripts": {}, "marks": 0}], "advice": "\n

Substitute for $y = \\simplify[std]{({b-d}/{a-c})x+{b*c-a*d}/{c-a}}$ in the equation of the circle.

\n

We get $\\simplify[std]{x^2+(({b-d}/{a-c})x+{b*c-a*d}/{c-a})^2 -{2*k}x -{2*l}(({b-d}/{a-c})x+{b*c-a*d}/{c-a})+{2*k*a+2*l*b-a^2-b^2}}=0$.

\n

Collecting terms we get $\\simplify[std]{{1+ (b-d)^2/(a-c)^2} x^2+{(-2)*(b-d)(b*c-a*d)/(a-c)^2-2*k -(2*l)*(b-d)/(a-c)}x+{(b*c-a*d)^2/(c-a)^2 -2*l*(b*c-a*d)/(c-a)+2*k*a+2*l*b-a^2-b^2}}=0$.

\n

Solving this quadratic equation for $x$ gives solutions $x=\\var{a}$ and $x=\\var{c}$.

\n

Substitute these values of $x$ into the equation $\\simplify[std]{({b-d}/{a-c})x+{b*c-a*d}/{c-a}}$ to obtain the $y$-coordinates: $y=\\var{b}$ (when $x=\\var{a}$) and $y=\\var{d}$ (when $x=\\var{c}$).

\n

Enter the coordinate pairs in the order $(\\var{m},\\var{n})$, $(\\var{p}, \\var{q})$.

\n ", "statement": "\n

Find the points where:

\n \n

 

\n \n

 

\n meet.\n

 

\n \n

Enter the coordinates for the two points, starting with the point with the smaller $x$-coordinate.

\n

Note that, for example, $-3$ is smaller than $-1$. Thus if the points of intersection were $(-1, 4)$ and $(-3,6)$ you would enter $(-3,6)$ for the first point and $(-1, 4)$ for the second.

\n

Input the coordinates as integers.

\n \n \n ", "functions": {}, "contributors": [{"name": "Newcastle University Mathematics and Statistics", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/697/"}, {"name": "Luis Hernandez", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/2870/"}]}]}], "contributors": [{"name": "Newcastle University Mathematics and Statistics", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/697/"}, {"name": "Luis Hernandez", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/2870/"}]}