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 new util function that sends tan function infinities correctly #422

Merged
merged 1 commit into from
Feb 1, 2017

Conversation

SillyInventor
Copy link
Contributor

Resolves

Resolves #420

Proposed Changes

Added new math op. function that casts to infinity, and correctly gives 0 at multiples of 180
Changed math op. to call new math util tan function
Changed sin & cos to round correctly (to get 0)
Added testing for the new math util function
Added more testing for altered new math op. functions

Reason for Changes

Returns 0s and +-inf when appropriate for trig functions

Test Coverage

Added a math util test for new util function, and a few additional tests for math op.

Changed mathop to call new math util
Changed sin & cos to round correctly (to get 0)
Added testing for the new math util function
Added testing for the new mathop functions
@thisandagain thisandagain self-requested a review February 1, 2017 14:12
@thisandagain thisandagain self-assigned this Feb 1, 2017
@thisandagain thisandagain added this to the February 16 milestone Feb 1, 2017
Copy link
Contributor

@thisandagain thisandagain left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! Thanks for expanding the test coverage.

@thisandagain thisandagain merged commit 073ffda into scratchfoundation:develop Feb 1, 2017
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants