@pie-lib/math-input 6.6.3 → 6.6.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.json +60 -0
- package/CHANGELOG.md +43 -0
- package/lib/horizontal-keypad.js +2 -1
- package/lib/horizontal-keypad.js.map +1 -1
- package/lib/keypad/index.js +29 -5
- package/lib/keypad/index.js.map +1 -1
- package/lib/keys/constants.js +17 -1
- package/lib/keys/constants.js.map +1 -1
- package/lib/keys/geometry.js +29 -3
- package/lib/keys/geometry.js.map +1 -1
- package/lib/keys/grades.js +110 -21
- package/lib/keys/grades.js.map +1 -1
- package/lib/keys/log.js +1 -1
- package/lib/keys/log.js.map +1 -1
- package/lib/keys/statistics.js +8 -1
- package/lib/keys/statistics.js.map +1 -1
- package/package.json +2 -2
- package/src/horizontal-keypad.jsx +1 -0
- package/src/keypad/index.jsx +41 -5
- package/src/keys/constants.js +16 -0
- package/src/keys/geometry.js +26 -2
- package/src/keys/grades.js +197 -83
- package/src/keys/log.js +1 -1
- package/src/keys/statistics.js +7 -0
package/src/keys/grades.js
CHANGED
|
@@ -14,18 +14,27 @@ import * as basicOperators from './basic-operators';
|
|
|
14
14
|
import * as matrices from './matrices';
|
|
15
15
|
import digits from './digits';
|
|
16
16
|
import * as logic from './logic';
|
|
17
|
+
import * as nav from './navigation';
|
|
18
|
+
import * as edit from './edit';
|
|
17
19
|
|
|
18
20
|
const hs = [
|
|
19
|
-
[
|
|
20
|
-
[
|
|
21
|
-
[
|
|
22
|
-
|
|
23
|
-
|
|
21
|
+
[fractions.blankOverBlank, misc.percentage, vars.x, exponent.squared, exponent.squareRoot],
|
|
22
|
+
[operators.circleDot, vars.y, subSup.subscript, exponent.xToPowerOfN, exponent.nthRoot],
|
|
23
|
+
[
|
|
24
|
+
misc.plusMinus,
|
|
25
|
+
comparison.lessThan,
|
|
26
|
+
comparison.greaterThan,
|
|
27
|
+
comparison.lessThanEqual,
|
|
28
|
+
comparison.greaterThanEqual
|
|
29
|
+
],
|
|
30
|
+
[constants.pi, vars.theta, misc.parenthesis, misc.brackets, misc.absValue],
|
|
31
|
+
[misc.notEqual, trigonometry.sin, trigonometry.cos, trigonometry.tan, geometry.degree]
|
|
24
32
|
];
|
|
25
33
|
|
|
26
34
|
const advancedAlgebra = (() => {
|
|
27
35
|
const out = [...hs.map(arr => [...arr])];
|
|
28
36
|
|
|
37
|
+
out[0].push({ name: 'i', latex: 'i', write: 'i' });
|
|
29
38
|
out[1].push(log.log);
|
|
30
39
|
out[2].push(log.logSubscript);
|
|
31
40
|
out[3].push(log.ln);
|
|
@@ -35,10 +44,11 @@ const advancedAlgebra = (() => {
|
|
|
35
44
|
|
|
36
45
|
const statisticsSet = (() => {
|
|
37
46
|
const out = [...hs.map(arr => [...arr])];
|
|
38
|
-
out[
|
|
39
|
-
out[
|
|
40
|
-
out[
|
|
41
|
-
out[
|
|
47
|
+
out[0].push(statistics.mu);
|
|
48
|
+
out[1].push(statistics.xBar);
|
|
49
|
+
out[2].push(statistics.yBar);
|
|
50
|
+
out[3].push(statistics.sigma);
|
|
51
|
+
out[4].push(statistics.smallSigma);
|
|
42
52
|
return out;
|
|
43
53
|
})();
|
|
44
54
|
|
|
@@ -54,109 +64,148 @@ export const gradeSets = [
|
|
|
54
64
|
{
|
|
55
65
|
predicate: n => n >= 6 && n <= 7,
|
|
56
66
|
set: [
|
|
57
|
-
[
|
|
58
|
-
[
|
|
59
|
-
[
|
|
60
|
-
[
|
|
61
|
-
[
|
|
67
|
+
[geometry.degree, comparison.lessThan, comparison.greaterThan],
|
|
68
|
+
[operators.circleDot, comparison.lessThanEqual, comparison.greaterThanEqual],
|
|
69
|
+
[vars.x, vars.y, exponent.squared, exponent.xToPowerOfN],
|
|
70
|
+
[misc.plusMinus, fractions.xOverBlank, fractions.xBlankBlank, exponent.squareRoot],
|
|
71
|
+
[constants.pi, misc.parenthesis, misc.absValue, exponent.nthRoot]
|
|
62
72
|
]
|
|
63
73
|
},
|
|
64
74
|
{
|
|
65
75
|
predicate: n => n >= 8 || n === 'HS',
|
|
76
|
+
set: hs
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
predicate: 'non-negative-integers',
|
|
66
80
|
set: [
|
|
67
|
-
[
|
|
68
|
-
[
|
|
69
|
-
[
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
81
|
+
[digits.seven, digits.eight, digits.nine],
|
|
82
|
+
[digits.four, digits.five, digits.six],
|
|
83
|
+
[digits.one, digits.two, digits.three],
|
|
84
|
+
[digits.zero, { name: '', latex: '', write: '' }, { name: '', latex: '', write: '' }],
|
|
85
|
+
[nav.left, nav.right, edit.del]
|
|
86
|
+
]
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
predicate: 'integers',
|
|
90
|
+
set: [
|
|
91
|
+
[digits.seven, digits.eight, digits.nine],
|
|
92
|
+
[digits.four, digits.five, digits.six],
|
|
93
|
+
[digits.one, digits.two, digits.three],
|
|
94
|
+
[digits.zero, { name: '', latex: '', write: '' }, basicOperators.minus],
|
|
95
|
+
[nav.left, nav.right, edit.del]
|
|
96
|
+
]
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
predicate: 'decimals',
|
|
100
|
+
set: [
|
|
101
|
+
[digits.seven, digits.eight, digits.nine],
|
|
102
|
+
[digits.four, digits.five, digits.six],
|
|
103
|
+
[digits.one, digits.two, digits.three],
|
|
104
|
+
[digits.zero, digits.decimalPoint, basicOperators.minus],
|
|
105
|
+
[nav.left, nav.right, edit.del]
|
|
106
|
+
]
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
predicate: 'fractions',
|
|
110
|
+
set: [
|
|
111
|
+
[digits.seven, digits.eight, digits.nine],
|
|
112
|
+
[digits.four, digits.five, digits.six],
|
|
113
|
+
[digits.one, digits.two, digits.three],
|
|
114
|
+
[digits.zero, fractions.blankOverBlank, basicOperators.minus],
|
|
115
|
+
[nav.left, nav.right, edit.del]
|
|
84
116
|
]
|
|
85
117
|
},
|
|
86
118
|
{
|
|
87
119
|
predicate: 'geometry',
|
|
88
120
|
set: [
|
|
89
121
|
[
|
|
122
|
+
fractions.blankOverBlank,
|
|
90
123
|
geometry.degree,
|
|
91
124
|
geometry.primeArcminute,
|
|
92
125
|
geometry.doublePrimeArcSecond,
|
|
93
|
-
geometry.
|
|
94
|
-
|
|
126
|
+
geometry.congruentTo,
|
|
127
|
+
geometry.similarTo
|
|
95
128
|
],
|
|
96
129
|
[
|
|
130
|
+
operators.circleDot,
|
|
97
131
|
geometry.angle,
|
|
98
132
|
geometry.measureOfAngle,
|
|
99
|
-
geometry.
|
|
100
|
-
geometry.
|
|
101
|
-
|
|
102
|
-
],
|
|
103
|
-
[trigonometry.sin, trigonometry.cos, trigonometry.tan, trigonometry.sec, exponent.nthRoot],
|
|
104
|
-
[trigonometry.csc, trigonometry.cot, exponent.xToPowerOfN, constants.pi, subSup.subscript],
|
|
105
|
-
[
|
|
106
|
-
geometry.overline,
|
|
107
|
-
geometry.overRightArrow,
|
|
108
|
-
geometry.overLeftRightArrow,
|
|
109
|
-
geometry.overArc,
|
|
110
|
-
vars.theta
|
|
111
|
-
]
|
|
112
|
-
]
|
|
113
|
-
},
|
|
114
|
-
{
|
|
115
|
-
predicate: 'miscellaneous',
|
|
116
|
-
set: [
|
|
117
|
-
[
|
|
118
|
-
subSup.superscript,
|
|
119
|
-
subSup.subscript,
|
|
120
|
-
fractions.blankOverBlank,
|
|
121
|
-
misc.percentage,
|
|
122
|
-
geometry.segment,
|
|
123
|
-
geometry.parallel
|
|
133
|
+
geometry.triangle,
|
|
134
|
+
geometry.notCongruentTo,
|
|
135
|
+
misc.notSimilar
|
|
124
136
|
],
|
|
125
137
|
[
|
|
138
|
+
trigonometry.sin,
|
|
139
|
+
trigonometry.cos,
|
|
140
|
+
trigonometry.tan,
|
|
141
|
+
constants.pi,
|
|
126
142
|
exponent.squareRoot,
|
|
127
|
-
exponent.nthRoot
|
|
128
|
-
misc.absValue,
|
|
129
|
-
misc.parenthesis,
|
|
130
|
-
geometry.perpindicular,
|
|
131
|
-
geometry.angle
|
|
132
|
-
],
|
|
133
|
-
[
|
|
134
|
-
comparison.lessThan,
|
|
135
|
-
comparison.greaterThan,
|
|
136
|
-
geometry.degree,
|
|
137
|
-
misc.approx,
|
|
138
|
-
geometry.measureOfAngle,
|
|
139
|
-
geometry.triangle
|
|
143
|
+
exponent.nthRoot
|
|
140
144
|
],
|
|
141
145
|
[
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
146
|
+
trigonometry.csc,
|
|
147
|
+
trigonometry.sec,
|
|
148
|
+
trigonometry.cot,
|
|
149
|
+
vars.theta,
|
|
150
|
+
subSup.subscript,
|
|
151
|
+
exponent.xToPowerOfN
|
|
148
152
|
],
|
|
149
153
|
[
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
154
|
+
geometry.overline,
|
|
155
|
+
geometry.overRightArrow,
|
|
156
|
+
geometry.overLeftRightArrow,
|
|
157
|
+
geometry.overArc,
|
|
158
|
+
geometry.perpindicular,
|
|
159
|
+
geometry.parallel
|
|
156
160
|
]
|
|
157
161
|
]
|
|
158
162
|
},
|
|
159
163
|
// {
|
|
164
|
+
// predicate: 'miscellaneous',
|
|
165
|
+
// set: [
|
|
166
|
+
// [
|
|
167
|
+
// subSup.superscript,
|
|
168
|
+
// subSup.subscript,
|
|
169
|
+
// fractions.blankOverBlank,
|
|
170
|
+
// misc.percentage,
|
|
171
|
+
// geometry.segment,
|
|
172
|
+
// geometry.parallel
|
|
173
|
+
// ],
|
|
174
|
+
// [
|
|
175
|
+
// exponent.squareRoot,
|
|
176
|
+
// exponent.nthRoot,
|
|
177
|
+
// misc.absValue,
|
|
178
|
+
// misc.parenthesis,
|
|
179
|
+
// geometry.perpindicular,
|
|
180
|
+
// geometry.angle
|
|
181
|
+
// ],
|
|
182
|
+
// [
|
|
183
|
+
// comparison.lessThan,
|
|
184
|
+
// comparison.greaterThan,
|
|
185
|
+
// geometry.degree,
|
|
186
|
+
// misc.approx,
|
|
187
|
+
// geometry.measureOfAngle,
|
|
188
|
+
// geometry.triangle
|
|
189
|
+
// ],
|
|
190
|
+
// [
|
|
191
|
+
// misc.nApprox,
|
|
192
|
+
// misc.notEqual,
|
|
193
|
+
// geometry.congruentTo,
|
|
194
|
+
// geometry.notCongruentTo,
|
|
195
|
+
// geometry.parallelogram,
|
|
196
|
+
// geometry.circledDot
|
|
197
|
+
// ],
|
|
198
|
+
// [
|
|
199
|
+
// misc.similar,
|
|
200
|
+
// misc.notSimilar,
|
|
201
|
+
// comparison.lessThanEqual,
|
|
202
|
+
// comparison.greaterThanEqual,
|
|
203
|
+
// vars.x,
|
|
204
|
+
// vars.y
|
|
205
|
+
// ]
|
|
206
|
+
// ]
|
|
207
|
+
// },
|
|
208
|
+
// {
|
|
160
209
|
// predicate: 'everything',
|
|
161
210
|
// set: [
|
|
162
211
|
// [
|
|
@@ -208,6 +257,71 @@ export const gradeSets = [
|
|
|
208
257
|
{
|
|
209
258
|
predicate: 'statistics',
|
|
210
259
|
set: statisticsSet
|
|
260
|
+
},
|
|
261
|
+
{
|
|
262
|
+
predicate: 'item-authoring',
|
|
263
|
+
set: [
|
|
264
|
+
[
|
|
265
|
+
basicOperators.divide,
|
|
266
|
+
fractions.blankOverBlank,
|
|
267
|
+
logic.longDivision,
|
|
268
|
+
constants.halfInfinity,
|
|
269
|
+
exponent.squared,
|
|
270
|
+
exponent.squareRoot,
|
|
271
|
+
geometry.overline,
|
|
272
|
+
geometry.overRightArrow,
|
|
273
|
+
geometry.overLeftRightArrow,
|
|
274
|
+
log.log
|
|
275
|
+
],
|
|
276
|
+
[
|
|
277
|
+
basicOperators.multiply,
|
|
278
|
+
digits.decimalPoint,
|
|
279
|
+
{ name: '', latex: '', write: '' },
|
|
280
|
+
subSup.subscript,
|
|
281
|
+
exponent.xToPowerOfN,
|
|
282
|
+
exponent.nthRoot,
|
|
283
|
+
geometry.perpindicular,
|
|
284
|
+
geometry.parallel,
|
|
285
|
+
geometry.overArc,
|
|
286
|
+
log.logSubscript
|
|
287
|
+
],
|
|
288
|
+
[
|
|
289
|
+
misc.plusMinus,
|
|
290
|
+
constants.pi,
|
|
291
|
+
vars.theta,
|
|
292
|
+
operators.circleDot,
|
|
293
|
+
geometry.angle,
|
|
294
|
+
geometry.leftArrow,
|
|
295
|
+
geometry.rightArrow,
|
|
296
|
+
geometry.triangle,
|
|
297
|
+
geometry.square,
|
|
298
|
+
log.ln
|
|
299
|
+
],
|
|
300
|
+
[
|
|
301
|
+
misc.notEqual,
|
|
302
|
+
misc.absValue,
|
|
303
|
+
statistics.smallSigma,
|
|
304
|
+
statistics.mu,
|
|
305
|
+
logic.therefore,
|
|
306
|
+
statistics.sigma,
|
|
307
|
+
geometry.leftrightArrow,
|
|
308
|
+
trigonometry.sin,
|
|
309
|
+
trigonometry.cos,
|
|
310
|
+
trigonometry.tan
|
|
311
|
+
],
|
|
312
|
+
[
|
|
313
|
+
comparison.lessThanEqual,
|
|
314
|
+
comparison.greaterThanEqual,
|
|
315
|
+
{ name: '', latex: '', write: '' },
|
|
316
|
+
{ name: '', latex: '', write: '' },
|
|
317
|
+
constants.infinity,
|
|
318
|
+
{ name: '', latex: '', write: '' },
|
|
319
|
+
{ name: '', latex: '', write: '' },
|
|
320
|
+
trigonometry.csc,
|
|
321
|
+
trigonometry.sec,
|
|
322
|
+
trigonometry.cot
|
|
323
|
+
]
|
|
324
|
+
]
|
|
211
325
|
}
|
|
212
326
|
];
|
|
213
327
|
|
package/src/keys/log.js
CHANGED