Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add the a variants of the arc trig functions. #29

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

drgrice1
Copy link
Sponsor Member

So now the trig functions include sin, arcsin, asin, sinh, arcsinh, and asinh.

However, when asin is typed, it automatically is turned into arcsin.

Of course all of the a variants for cos, tan, sec, csc, and cot are added with the same behavior.

The space before trig functions (if preceded by a letter) in text output added in #28 is still needed. One could type sin, and then go back and add a before it, and it will not be turned into asin or arcsin, and so PG would still interpret that as asin in that case without the space.

Note that the a variants will need to be added to the auto commands of the mqeditor.js file in order for this to work for PG.

This fixes openwebwork/webwork2#2209.

This is built on top of openwebwork#27 (so that dist includes a build that won't
confict).
So now the trig functions include `sin`, `arcsin`, `asin`, `sinh`,
`arcsinh`, and `asinh`.

However, when `asin` is typed, it automatically is turned into `arcsin`.

Of course all of the `a` variants for `cos`, `tan`, `sec`, `csc`, and
`cot` are added with the same behavior.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant