-
-
Notifications
You must be signed in to change notification settings - Fork 7.3k
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
fix:Fit Binominal calculate.cpp
to guidelines
#2464
Conversation
FIX: altered the structure of if else if statements to have guard clauses first before main functionality, added brackets to make calculation steps more clear (Following BODMAS), updated namespaces used in file, removed unneeded user input code CHORE: Added explanations and other documentation
maybe we should change the file name to just be |
Co-authored-by: realstealthninja <68815218+realstealthninja@users.noreply.github.com>
Co-authored-by: realstealthninja <68815218+realstealthninja@users.noreply.github.com>
Co-authored-by: realstealthninja <68815218+realstealthninja@users.noreply.github.com>
Co-authored-by: realstealthninja <68815218+realstealthninja@users.noreply.github.com>
Co-authored-by: realstealthninja <68815218+realstealthninja@users.noreply.github.com>
part of #2456. |
added latex, changed namespace back to binomial
…us-Plus into binomial_calculate
I thought to do this before but forgot to actually do it, whoops!
Co-authored-by: David Leal <halfpacho@gmail.com>
* @namespace binomial | ||
* @brief Functions for [Binomial | ||
* coefficients](https://en.wikipedia.org/wiki/Binomial_coefficient) | ||
* implementation | ||
*/ | ||
namespace binomial { | ||
namespace math { namespace binomial { |
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.
this needs to be documented as well
* @namespace binomial | ||
* @brief Functions for [Binomial | ||
* coefficients](https://en.wikipedia.org/wiki/Binomial_coefficient) | ||
* implementation | ||
*/ | ||
namespace binomial { | ||
namespace math { namespace binomial { |
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.
namespace math { namespace binomial { | |
namespace math { | |
namespace binomial { |
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. |
Please ping one of the maintainers once you commit the changes requested or make improvements on the code. If this is not the case and you need some help, feel free to ask for help in our Gitter channel or our Discord server. Thank you for your contributions! |
Description of Change
FIX: altered the structure of if else if statements to have guard clauses first before main functionality, added brackets to make calculation steps more clear (Following BODMAS), updated namespaces used in file, removed unneeded user input code
CHORE: Added explanations and other documentation
Checklist
Notes: still no clangd working for me, file may need checked
I'm pretty sure I could do a recursive version of this code, should I make one and add it as a function to this file?