-
-
Notifications
You must be signed in to change notification settings - Fork 46.6k
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
Magnitude and Angle of Vector #5225
Conversation
Core function to find Magnitude and Angle of two Given Vector
linear_algebra/src/lib.py
Outdated
def magnitude(self) -> float: | ||
''' | ||
Magnitude of a Vector | ||
''' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No doctest
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add doctests for negative numbers and zero.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
And use double quotes
added Doctest to the functions
Added DocTest to the file |
Co-authored-by: Christian Clauss <cclauss@me.com>
Co-authored-by: Christian Clauss <cclauss@me.com>
and Magnitude and Angle Issues
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Thanks for doing this!
Welcome. I will Love to contribute more to this Community |
* Magnitude and Angle Core function to find Magnitude and Angle of two Given Vector * Magnitude and Angle with Doctest added Doctest to the functions * Update linear_algebra/src/lib.py Co-authored-by: Christian Clauss <cclauss@me.com> * Update linear_algebra/src/lib.py Co-authored-by: Christian Clauss <cclauss@me.com> * Changes done and Magnitude and Angle Issues * black Co-authored-by: Christian Clauss <cclauss@me.com>
Describe your change:
Core function to find Magnitude and Angle of two Given Vector
Checklist:
Fixes: #{$ISSUE_NO}
.