Physics new code - #4709
Physics new code#4709
Conversation
ghost
left a comment
There was a problem hiding this comment.
Click here to look at the relevant links ⬇️
🔗 Relevant Links
Repository:
Python:
Automated review generated by algorithms-keeper. If there's any problem regarding this review, please open an issue about it.
algorithms-keeper commands and options
algorithms-keeper actions can be triggered by commenting on this PR:
@algorithms-keeper reviewto trigger the checks for only added pull request files@algorithms-keeper review-allto trigger the checks for all the pull request files, including the modified files. As we cannot post review comments on lines not part of the diff, this command will post all the messages in one comment.NOTE: Commands are in beta and so this feature is restricted only to a member or owner of the organization.
And also changed output to math notation
|
One last request. Good Work.👍 👍 👍 |
Done. Thank You. |
|
@cclauss have a look at this. |
|
It is working |
And comments
Replicate the exceptions of https://docs.python.org/3/library/math.html#math.gamma
There was a problem hiding this comment.
Nice work. I modified the exceptions to more closely mimic the Python's Standard Library math.gamma() function.
* added gamma_function * Add files via upload * Resolved issue with str.format And also changed output to math notation * Update gamma_function.py * Rename physics/gamma_function.py to maths/gamma_recursive.py * Fixes: TheAlgorithms#4709 Fixed issues for pre-commit test * Fixes: TheAlgorithms#4709 solved issues with doctests And comments * Fixes: TheAlgorithms#4709 Added failed tests to doctest * Align with Python's Standard Library math.gamma() Replicate the exceptions of https://docs.python.org/3/library/math.html#math.gamma * Update gamma_recursive.py * Update gamma_recursive.py * Update gamma_recursive.py * Update gamma_recursive.py Co-authored-by: Christian Clauss <cclauss@me.com>

Describe your change:
Added new file to Physics folder. This file contain a function to calculate gamma function which is a common tool used in physics.
Checklist:
Fixes: #{$ISSUE_NO}.