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 Apr 27, 2024
1 parent e966922 commit 1c9cf36
Show file tree
Hide file tree
Showing 3 changed files with 2,843 additions and 2,841 deletions.
4 changes: 3 additions & 1 deletion htdocs/js/MathQuill/mqeditor.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,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

0 comments on commit 1c9cf36

Please sign in to comment.