Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 118 lines (107 sloc) 5.592 kb
51039c9 Omar Rizwan Add exponent_rules
osnr authored
1 <!DOCTYPE html>
cde9e9f John Resig Re-run the exercises through the updated cleaner.
jeresig authored
2 <html data-require="math expressions">
3 <head>
0f0c630 Michael Chang Clean up the exercise files using the new cleaning utility. (II)
cbhl authored
4 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
4e4cb9b Ben Eater lint: tabs->spaces and jQuery->$ for exercises
beneater authored
5 <title>Exponent rules</title>
ac1415e Ben Alpert Use requirejs for module loading
spicyj authored
6 <script data-main="../local-only/main.js" src="../local-only/require.js"></script>
51039c9 Omar Rizwan Add exponent_rules
osnr authored
7 </head>
8 <body>
4e4cb9b Ben Eater lint: tabs->spaces and jQuery->$ for exercises
beneater authored
9 <div class="exercise">
10 <div class="problems">
11 <div id="adding">
3aa6fcd Peter Collingridge Use expression editor and make answer larger
petercollingridge authored
12 <div class="vars" data-ensure="EXP1 !== EXP2 && EXP1 + EXP2 !== 1">
4e4cb9b Ben Eater lint: tabs->spaces and jQuery->$ for exercises
beneater authored
13 <var id="BASE">randRange(3, 9)</var>
14 <var id="EXP1">randRange(3, 12) * (rand(2) ? 1 : -1)</var>
15 <var id="EXP2">randRange(3, 12) * (rand(2) ? 1 : -1)</var>
16 </div>
51039c9 Omar Rizwan Add exponent_rules
osnr authored
17
5b61911 Peter Collingridge Limit range of possible answers to fit standard
petercollingridge authored
18 <p class="question">
19 Rewrite <code>\large{<var>expr(["*", ["^", BASE, EXP1], ["^", BASE, EXP2]])</var>}</code>
20 in the form <code>\large{<var>BASE</var>^n}</code>.
21 </p>
22 <p class="solution" data-type="expression" data-same-form="">
23 <var>BASE</var>^<var>EXP1 + EXP2</var>
4e4cb9b Ben Eater lint: tabs->spaces and jQuery->$ for exercises
beneater authored
24 </p>
51039c9 Omar Rizwan Add exponent_rules
osnr authored
25
4e4cb9b Ben Eater lint: tabs->spaces and jQuery->$ for exercises
beneater authored
26 <div class="hints">
3aa6fcd Peter Collingridge Use expression editor and make answer larger
petercollingridge authored
27 <p><code>\large{
28 <var>expr(["*", ["^", BASE, EXP1], ["^", BASE, EXP2]])</var> =
29 <var>expr(["^", BASE, ["+", EXP1, EXP2]])</var>}
4e4cb9b Ben Eater lint: tabs->spaces and jQuery->$ for exercises
beneater authored
30 </code></p>
3aa6fcd Peter Collingridge Use expression editor and make answer larger
petercollingridge authored
31 <p><code>\large{\hphantom{
32 <var>expr(["*", ["^", BASE, EXP1], ["^", BASE, EXP2]])</var>} =
33 <var>BASE</var>^{<var>EXP1 + EXP2</var>}}
4e4cb9b Ben Eater lint: tabs->spaces and jQuery->$ for exercises
beneater authored
34 </code></p>
35 </div>
36 </div>
51039c9 Omar Rizwan Add exponent_rules
osnr authored
37
0f0c630 Michael Chang Clean up the exercise files using the new cleaning utility. (II)
cbhl authored
38 <div id="subtracting" data-type="adding">
3aa6fcd Peter Collingridge Use expression editor and make answer larger
petercollingridge authored
39 <div class="vars" data-ensure="EXP1 !== EXP2 && EXP1 - EXP2 !== 1">
40 <var id="BASE">randRange(3, 9)</var>
41 <var id="EXP1">randRange(3, 12) * (rand(2) ? 1 : -1)</var>
42 <var id="EXP2">randRange(3, 12) * (rand(2) ? 1 : -1)</var>
43 </div>
44
5b61911 Peter Collingridge Limit range of possible answers to fit standard
petercollingridge authored
45 <p class="question">
46 Rewrite <code>\large{<var>expr(["frac", ["^", BASE, EXP1], ["^", BASE, EXP2]])</var>}</code>
47 in the form <code>\large{<var>BASE</var>^n}</code>.
48 </p>
49 <p class="solution" data-type="expression" data-same-form="">
50 <var>BASE</var>^<var>EXP1 - EXP2</var>
4e4cb9b Ben Eater lint: tabs->spaces and jQuery->$ for exercises
beneater authored
51 </p>
51039c9 Omar Rizwan Add exponent_rules
osnr authored
52
4e4cb9b Ben Eater lint: tabs->spaces and jQuery->$ for exercises
beneater authored
53 <div class="hints">
3aa6fcd Peter Collingridge Use expression editor and make answer larger
petercollingridge authored
54 <p><code>\large{
55 <var>expr(["frac", ["^", BASE, EXP1], ["^", BASE, EXP2]])</var> =
56 <var>expr(["^", BASE, ["-", EXP1, EXP2]])</var>}
4e4cb9b Ben Eater lint: tabs->spaces and jQuery->$ for exercises
beneater authored
57 </code></p>
3aa6fcd Peter Collingridge Use expression editor and make answer larger
petercollingridge authored
58 <p><code>\large{
59 \hphantom{<var>expr(["frac", ["^", BASE, EXP1], ["^", BASE, EXP2]])</var>} =
60 <var>BASE</var>^{<var>EXP1 - EXP2</var>}}
4e4cb9b Ben Eater lint: tabs->spaces and jQuery->$ for exercises
beneater authored
61 </code></p>
62 </div>
63 </div>
51039c9 Omar Rizwan Add exponent_rules
osnr authored
64
0f0c630 Michael Chang Clean up the exercise files using the new cleaning utility. (II)
cbhl authored
65 <div id="multiplying" data-type="adding">
5b61911 Peter Collingridge Limit range of possible answers to fit standard
petercollingridge authored
66 <p class="question">
67 Rewrite <code>\large{<var>expr(["^", ["^", BASE, EXP1], EXP2])</var>}</code>
68 in the form <code>\large{<var>BASE</var>^n}</code>.
69 </p>
70 <p class="solution" data-type="expression" data-same-form="">
71 <var>BASE</var>^<var>EXP1 * EXP2</var>
4e4cb9b Ben Eater lint: tabs->spaces and jQuery->$ for exercises
beneater authored
72 </p>
51039c9 Omar Rizwan Add exponent_rules
osnr authored
73
4e4cb9b Ben Eater lint: tabs->spaces and jQuery->$ for exercises
beneater authored
74 <div class="hints">
3aa6fcd Peter Collingridge Use expression editor and make answer larger
petercollingridge authored
75 <p><code>\large{
76 <var>expr(["^", ["^", BASE, EXP1], EXP2])</var> =
77 <var>expr(["^", BASE, ["*", EXP1, EXP2]])</var>}
4e4cb9b Ben Eater lint: tabs->spaces and jQuery->$ for exercises
beneater authored
78 </code></p>
3aa6fcd Peter Collingridge Use expression editor and make answer larger
petercollingridge authored
79 <p><code>\large{\hphantom{
80 <var>expr(["^", ["^", BASE, EXP1], EXP2])</var>} =
81 <var>BASE</var>^{<var>EXP1 * EXP2</var>}}
4e4cb9b Ben Eater lint: tabs->spaces and jQuery->$ for exercises
beneater authored
82 </code></p>
83 </div>
84 </div>
51039c9 Omar Rizwan Add exponent_rules
osnr authored
85
4e4cb9b Ben Eater lint: tabs->spaces and jQuery->$ for exercises
beneater authored
86 <div id="combined">
0f0c630 Michael Chang Clean up the exercise files using the new cleaning utility. (II)
cbhl authored
87 <div class="vars" data-ensure="getGCD(BASE1, BASE2) === 1">
4e4cb9b Ben Eater lint: tabs->spaces and jQuery->$ for exercises
beneater authored
88 <var id="BASE1">randRange(3, 9)</var>
89 <var id="BASE2">randRange(3, 9)</var>
90 <var id="EXP1">randRange(3, 12) * (rand(2) ? 1 : -1)</var>
91 <var id="EXP2">randRange(3, 12) * (rand(2) ? 1 : -1)</var>
92 <var id="EXP3">randRange(3, 12) * (rand(2) ? 1 : -1)</var>
93 </div>
51039c9 Omar Rizwan Add exponent_rules
osnr authored
94
5b61911 Peter Collingridge Limit range of possible answers to fit standard
petercollingridge authored
95 <p class="question">
96 Rewrite <code>\large{<var>expr(["^", ["*", ["^", BASE1, EXP1], ["^", BASE2, EXP2]], EXP3])</var>}</code>
97 in the form <code>\large{<var>BASE1</var>^n \times <var>BASE2</var>^m}</code>.
98 </p>
3aa6fcd Peter Collingridge Use expression editor and make answer larger
petercollingridge authored
99 <p class="solution" data-type="expression" data-same-form="" data-times="">
5b61911 Peter Collingridge Limit range of possible answers to fit standard
petercollingridge authored
100 <var>BASE1</var>^<var>EXP1 * EXP3</var> * <var>BASE2</var>^<var>EXP2 * EXP3</var>
4e4cb9b Ben Eater lint: tabs->spaces and jQuery->$ for exercises
beneater authored
101 </p>
51039c9 Omar Rizwan Add exponent_rules
osnr authored
102
4e4cb9b Ben Eater lint: tabs->spaces and jQuery->$ for exercises
beneater authored
103 <div class="hints">
3aa6fcd Peter Collingridge Use expression editor and make answer larger
petercollingridge authored
104 <p><code>\large{
105 <var>expr(["^", ["*", ["^", BASE1, EXP1], ["^", BASE2, EXP2]], EXP3])</var> =
106 <var>expr(["*", ["^", BASE1, ["*", EXP1, EXP3]], ["^", BASE2, ["*", EXP2, EXP3]]])</var>}
4e4cb9b Ben Eater lint: tabs->spaces and jQuery->$ for exercises
beneater authored
107 </code></p>
3aa6fcd Peter Collingridge Use expression editor and make answer larger
petercollingridge authored
108 <p><code>\large{\hphantom{
109 <var>expr(["^", ["*", ["^", BASE1, EXP1], ["^", BASE2, EXP2]], EXP3])</var>} =
110 <var>expr(["^", BASE1, EXP1*EXP3])</var> \times <var>expr(["^", BASE2, EXP2*EXP3])</var>}
4e4cb9b Ben Eater lint: tabs->spaces and jQuery->$ for exercises
beneater authored
111 </code></p>
112 </div>
113 </div>
114 </div>
115 </div>
cde9e9f John Resig Re-run the exercises through the updated cleaner.
jeresig authored
116 </body>
117 </html>
Something went wrong with that request. Please try again.