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

added degree for sin(), cos() and tan() #60

Closed

Conversation

danger-ahead
Copy link

@danger-ahead danger-ahead commented Jan 13, 2022

fixes #33

  • any documentation has not been updated

  • takes a 'isRadian' parameter that's by default true, if nothing's been passed as 'isRadian'

  • if 'isRadian' is false, the function is carried out in degrees

  • changes have been made in the 'parse' method in 'parser.dart'

  • Tested and found to be working as expected.

- any documentation has not been updated
- takes a 'isRadian' parameter that's by default true, if nothing's been passed as 'isRadian'
- if 'isRadian' is false, the function is carried out in degrees
- changes have been made in the 'parse' method in 'parser.dart'
@danger-ahead
Copy link
Author

This fix has a bug.

Gives wrong outputs in scenarios like these: sin(90*sin(90)). Closing this.

@danger-ahead danger-ahead deleted the degree-for-sin_cos_tan branch January 14, 2022 10:31
@fkleon
Copy link
Owner

fkleon commented Jan 17, 2022

Hi @danger-ahead, thanks for trying to contribute this change to math-expressions. I recommend adding some unit tests next time to verify the expected behaviour. Let me know if you still want to work on this!

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.

Using degrees for sin(),cos() and tan()
2 participants