-
Notifications
You must be signed in to change notification settings - Fork 37
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
Using degrees for sin(),cos() and tan() #33
Comments
Hi Correct, as you figured out, it's currently only possible to use radians on all trigonometric functions. I'll update the documentation for the next version to state this explicitly. Hence you'd have to do the conversion from degree to radians in your application. While input in degrees could be supported directly in this library (either by introducing a specific degree notation that the parser understands, or a second set of function definitions), I'm not sure there is much value since the conversions are pretty trivial. |
How can I change the parser, to use degrees entirely, instead of radian? |
Three options:
I think the first option is most flexible and could be toggled via a configuration option for the parser. |
Went through the codebase. Can you explain in detail how can I achieve this? |
javascript popular math.js js code: |
Is it possible to use degrees for sin,cos and tan ?
sin(90) = 1
I figured out we can just use radian...
The text was updated successfully, but these errors were encountered: