|
|
@@ -280,8 +280,6 @@ class _CalculatorPageState extends State<CalculatorPage> {
|
|
|
_doc.makePower();
|
|
|
case _Act.brace:
|
|
|
_doc.makeBrace();
|
|
|
- case _Act.newRow:
|
|
|
- _doc.addMatrixRow();
|
|
|
case _Act.frac:
|
|
|
_doc.makeFraction();
|
|
|
case _Act.postfix:
|
|
|
@@ -504,7 +502,9 @@ class _CalculatorPageState extends State<CalculatorPage> {
|
|
|
[
|
|
|
_Key('x', _Act.char, payload: 'x'),
|
|
|
_Key('a', _Act.char, payload: 'a'),
|
|
|
- _Key('b', _Act.char, payload: 'b'),
|
|
|
+ // y 比 b 要紧:二元方程组、圆的方程、对称变换全都要 y,
|
|
|
+ // 而 b 在函数面板之外也没什么独占用途
|
|
|
+ _Key('y', _Act.char, payload: 'y'),
|
|
|
_Key('t', _Act.char, payload: 't'),
|
|
|
_Key('n', _Act.char, payload: 'n'),
|
|
|
],
|
|
|
@@ -515,7 +515,8 @@ class _CalculatorPageState extends State<CalculatorPage> {
|
|
|
_Key('==', _Act.char, payload: '==', tint: true),
|
|
|
_Key('/.', _Act.char, payload: '/.', tint: true),
|
|
|
_Key('->', _Act.char, payload: '->', tint: true),
|
|
|
- _Key('_', _Act.char, payload: '_', tint: true),
|
|
|
+ // 常量。编辑框显示 π / e,送进引擎的是 Pi / E(和 ANS 同一套机制)
|
|
|
+ _Key('π', _Act.char, payload: 'Pi', tint: true, display: 'π'),
|
|
|
],
|
|
|
// 5 数字与括号
|
|
|
[
|
|
|
@@ -523,14 +524,14 @@ class _CalculatorPageState extends State<CalculatorPage> {
|
|
|
_Key('8', _Act.char, payload: '8', mergeDigit: true),
|
|
|
_Key('9', _Act.char, payload: '9', mergeDigit: true),
|
|
|
_Key('(', _Act.group),
|
|
|
- _Key('/', _Act.frac),
|
|
|
+ _Key('!', _Act.postfix),
|
|
|
],
|
|
|
[
|
|
|
_Key('4', _Act.char, payload: '4', mergeDigit: true),
|
|
|
_Key('5', _Act.char, payload: '5', mergeDigit: true),
|
|
|
_Key('6', _Act.char, payload: '6', mergeDigit: true),
|
|
|
_Key('×', _Act.char, payload: '*'),
|
|
|
- _Key('!', _Act.postfix),
|
|
|
+ _Key('/', _Act.frac),
|
|
|
],
|
|
|
[
|
|
|
_Key('1', _Act.char, payload: '1', mergeDigit: true),
|
|
|
@@ -545,7 +546,7 @@ class _CalculatorPageState extends State<CalculatorPage> {
|
|
|
_Key('.', _Act.char, payload: '.', mergeDigit: true),
|
|
|
_Key('^', _Act.power),
|
|
|
_Key('{', _Act.brace),
|
|
|
- _Key('},{', _Act.newRow, tint: true),
|
|
|
+ _Key('e', _Act.char, payload: 'E', tint: true, display: 'e'),
|
|
|
],
|
|
|
[
|
|
|
_Key('⌫', _Act.back, tint: true),
|
|
|
@@ -624,7 +625,6 @@ enum _Act {
|
|
|
fnPrefixed,
|
|
|
bigOp,
|
|
|
brace,
|
|
|
- newRow,
|
|
|
sqrt,
|
|
|
group,
|
|
|
power,
|