This repository has been archived by the owner on May 11, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 863
/
equation_of_a_circle_2.html
55 lines (48 loc) · 2.35 KB
/
equation_of_a_circle_2.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
<!DOCTYPE html>
<html data-require="math math-format expressions">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Equation of a circle in non-factored form</title>
<script data-main="../local-only/main.js" src="../local-only/require.js"></script>
</head>
<body>
<div class="exercise">
<div class="vars">
<var id="H">randRange(-9, 9)</var>
<var id="K">randRange(-9, 9)</var>
<var id="R">randRange(1, 7)</var>
<var id="X2T">H === 0 ? "x^2" : expr(["^", ["+", "x", -H], 2])</var>
<var id="Y2T">K === 0 ? "y^2" : expr(["^", ["+", "y", -K], 2])</var>
<var id="D">-2 * H</var>
<var id="E">-2 * K</var>
<var id="F">H * H + K * K - R * R</var>
</div>
<div class="problems">
<div>
<div class="question">
<p>The equation of a circle <code>C</code> is
<code><var>expr(["+",
"x^2",
"y^2",
D === 0 ? null : ["*", D, "x"],
E === 0 ? null : ["*", E, "y"],
F === 0 ? null : F
])</var> = 0</code>.</p>
<p>What is its center <code>(h, k)</code> and its radius <code>r</code>?</p>
</div>
<div class="solution" data-type="multiple">
<p class="short30"><code>(h, k) = (</code><span class="sol" data-forms="integer"><var>H</var></span><code>,</code> <span class="sol" data-forms="integer"><var>K</var></span><code>)</code></p>
<p><code>r = {}</code><span class="sol" data-forms="integer"><var>R</var></span></p>
</div>
</div>
</div>
<div class="hints">
<p>To find the equation in standard form, complete the square.</p>
<p><code>(<var>expr(["+", "x^2", ["*", D, "x"]])</var>) + (<var>expr(["+", "y^2", ["*", E, "y"]])</var>) = <var>-F</var></code></p>
<p><code>(<var>expr(["+", "x^2", ["*", D, "x"], H * H])</var>) + (<var>expr(["+", "y^2", ["*", E, "y"], K * K])</var>) = <var>-F</var> + <var>H * H</var> + <var>K * K</var></code></p>
<p><code><var>X2T</var> + <var>Y2T</var> = <var>R * R</var> = <var>R</var>^2</code></p>
<p>Thus, <code>(h, k) = (<var>H</var>, <var>K</var>)</code> and <code>r = <var>R</var></code>.</p>
</div>
</div>
</body>
</html>