Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork5.7k
fix: hadnle zeros at the endpoints inBisectionMethod
#1640
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
codecov-commenter commentedMar 7, 2024 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@## master #1640 +/- ##==========================================+ Coverage 84.07% 84.09% +0.02%========================================== Files 375 375 Lines 19688 19687 -1 Branches 2913 2914 +1 ==========================================+ Hits 16552 16556 +4+ Misses 3136 3131 -5 ☔ View full report in Codecov by Sentry. |
BisectionMethod
BisectionMethod
BisectionMethod
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.
Math.pow(x, n)
can be written asx**n
btw, so you could simply writex => x ** 2
for example.
Co-authored-by: appgurueu <34514239+appgurueu@users.noreply.github.com>
Uh oh!
There was an error while loading.Please reload this page.
Describe your change:
findRoot
errors when one is trying to find a root forx^3
on the interval[-1, 1]
. This PR fixes that and adds a testcavecase covering:JavaScript/Maths/BisectionMethod.js
Line 29 in4a4ed57
Checklist:
Example:
UserProfile.js
is allowed butuserprofile.js
,Userprofile.js
,user-Profile.js
,userProfile.js
are notFixes: #{$ISSUE_NO}
.