Skip to content

Commit

Permalink
Add the a trig functions to the mqeditor autoCommands.
Browse files Browse the repository at this point in the history
This depends on openwebwork/mathquill#29.
  • Loading branch information
drgrice1 committed Jun 25, 2024
1 parent 63d034d commit b9892db
Show file tree
Hide file tree
Showing 3 changed files with 2,825 additions and 2,824 deletions.
4 changes: 3 additions & 1 deletion htdocs/js/MathQuill/mqeditor.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,9 @@
sumStartsWithNEquals: true,
supSubsRequireOperand: true,
autoCommands: ['pi', 'sqrt', 'root', 'vert', 'inf', 'union', 'abs', 'deg', 'AA', 'angstrom', 'ln', 'log']
.concat(['sin', 'cos', 'tan', 'sec', 'csc', 'cot'].reduce((a, t) => a.concat([t, `arc${t}`]), []))
.concat(
['sin', 'cos', 'tan', 'sec', 'csc', 'cot'].reduce((a, t) => a.concat([t, `arc${t}`, `a${t}`]), [])
)
.join(' '),
rootsAreExponents: true,
logsChangeBase: true,
Expand Down
Loading

0 comments on commit b9892db

Please sign in to comment.