Skip to content
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

math: the error of log2(8) is 4.44e-16 which seems too large #4567

Closed
griesemer opened this issue Dec 18, 2012 · 4 comments
Closed

math: the error of log2(8) is 4.44e-16 which seems too large #4567

griesemer opened this issue Dec 18, 2012 · 4 comments
Milestone

Comments

@griesemer
Copy link
Contributor

http://play.golang.org/p/LP2YWj1nEJ

Result is:

2.9999999999999996 4.440892098500626e-16
@ianlancetaylor
Copy link
Contributor

Comment 1:

Currently math.Log2 and math.Log10 are simply written in terms of math.Log.  That
introduces significant imprecision for results like this.  We need a proper
implementation.

Labels changed: added priority-soon, removed priority-triage.

@rsc
Copy link
Contributor

rsc commented Dec 18, 2012

Comment 2:

Owner changed to @rsc.

Status changed to Started.

@rsc
Copy link
Contributor

rsc commented Dec 18, 2012

Comment 3:

codereview.appspot.com/6943074

@rsc
Copy link
Contributor

rsc commented Dec 20, 2012

Comment 4:

This issue was closed by revision a3677b5.

Status changed to Fixed.

@rsc rsc added this to the Go1.1 milestone Apr 14, 2015
@rsc rsc removed the go1.1 label Apr 14, 2015
@golang golang locked and limited conversation to collaborators Jun 24, 2016
@rsc rsc removed their assignment Jun 22, 2022
This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants