Skip to content

Conversation

@BarathiShankar
Copy link

Description of Change
This PR improves the ground_to_ground_projectile_motion module by:
Adding input validation to ensure velocity is non-negative and angle is within 0–90°
Defining constants for rounding precision (ROUND_PRECISION_2, ROUND_PRECISION_3) and floating-point tolerance (EPSILON)
Updating the test() function to use tolerance-based assertions for floating-point comparison
Fixing documentation typos, including correcting the comment for degrees_to_radians
Adding Doxygen-style comments for all new constants and functions
These changes maintain the original output format and ensure all tests pass successfully.

Checklist
[x] Added file name matches File name guidelines
[x] Added documentation so that the program is self-explanatory and educational - Doxygen guidelines
[x] Relevant documentation/comments is changed or added
[x] Search previous suggestions before making a new one, as yours may be a duplicate

Added input validation and constants for rounding precision in projectile motion calculations.
Fixed some typos
Updated test function for self testing
@github-actions
Copy link
Contributor

github-actions bot commented Dec 6, 2025

This pull request has been automatically marked as abandoned because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@github-actions github-actions bot added the stale Author has not responded to the comments for over 2 weeks label Dec 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

stale Author has not responded to the comments for over 2 weeks

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants