-
-
Notifications
You must be signed in to change notification settings - Fork 5.7k
Algorithm to calculate the Arithmetic Geometric Mean #897
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
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 tests for the algorithm.
Please add tests for the algorithm.
I committed the test script now, but the "build" stage says that none of the methods are functions. "toBe
is not a function", and "toEqual
is not a function". Is this normal?
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.
toBe
should be outside expect
. Please fix all the instances where you put it inside.
My bad, sorry. I didn't notice. I'll fix it now
I'll fix the other bugs now
Uh oh!
There was an error while loading. Please reload this page.
Added an algorithm to compute/find the Arithmetic-Geometric Mean between 2 numbers
a
andg
. I thought it would be a good idea since it shows how to compute at full precision without anepsilon
comparison, and there's already an Arithmetic Mean so I added this for completeness.Welcome to JavaScript community
Open in Gitpod know more
Describe your change:
Checklist:
Example:
UserProfile.js
is allowed butuserprofile.js
,Userprofile.js
,user-Profile.js
,userProfile.js
are notFixes: #{$ISSUE_NO}
.