Repository navigation
Added area algorithms - #15590
Closed
nibblus wants to merge 10 commits into
Closed
Added area algorithms#15590nibblus wants to merge 10 commits into
nibblus wants to merge 10 commits into
Conversation
- lateral_surface_area_hemisphere(): calculate lateral surface area of a hemisphere - lateral_surface_area_conical_frustum(): calculate lateral surface area of conical frustrum - area_triangle_side_angle_side(): calculate area when 2 sides and angle are given - area_triangle_angle_side_angle(): calculate area when 2 angles and side are given Fixes: - Changed instances of "1/2 * formula" into "formula / 2" as it is more accurate in edga case of floating point precision Documentation changes: - fixed a few typos, - added formulas, add wikipedia references
…h_area_improvements
…h_area_improvements
Clearer way to limit angle between -360 and 360 using modulo Avoid recalculating factorial(x) every iteration. Keep calculating until next term has no longer effect on the result. All existing doctests still succeed.
Author
|
I messed up pull requests.... |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Describe your change
to math/area
Checklist