-
-
Notifications
You must be signed in to change notification settings - Fork 46.9k
Added Testcases to scoring_functions.py #1299
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
Conversation
Conflicting files and failing tests. |
arithmetic_analysis/bisection.py
Outdated
def bisection(function, a, b): # finds where the function becomes 0 in [a,b] using bolzano | ||
def bisection( | ||
function, a, b | ||
): # finds where the function becomes 0 in [a,b] using bolzano |
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 convert this comment to a docstring.
arithmetic_analysis/bisection.py
Outdated
elif function(a) * function(b) > 0: # if none of these are root and they are both positive or negative, | ||
elif ( | ||
function(a) * function(b) > 0 | ||
): # if none of these are root and they are both positive or negative, |
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 put this comment on a separate line.
arithmetic_analysis/intersection.py
Outdated
|
||
def intersection( | ||
function, x0, x1 | ||
): # function is the f we want to find its root and x0 and x1 are two random starting points |
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 convert this comment to a docstring.
This PR is insane. Something is wrong. I only changed 1 file. What the frick!? |
Closing this. |
This PR is in response to #1085 asking for doctests. I have added doctests to all functions in
scoring_functions.py