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

[skip ci] Make comment describing add22condh meaningful #21985

Merged
merged 1 commit into from
Jun 26, 2017

Conversation

giordano
Copy link
Contributor

PR #4862 removed a bunch of functions together with their comments. add22condh survived, but the comment describing this function refers to the comment of a deleted function. This PR basically resurrects and adapts the deleted comment, but please check for correctness of the comment ;-)

For reference, the deleted comment was here:

julia/base/math.jl

Lines 1343 to 1346 in 4d83f89

# This algorithm, due to Dekker [1], computes the sum of
# two double-double numbers as a double-double, with a relative error smaller than 2^−103
# [1] http://gdz.sub.uni-goettingen.de/dms/load/img/?PPN=PPN362160546_0018&DMDID=DMDLOG_0023&LOGID=LOG_0023&PHYSID=PHYS_0232
# [2] http://ftp.nluug.nl/pub/os/BSD/FreeBSD/distfiles/crlibm/crlibm-1.0beta3.pdf
I replaced the second URL, now dead, with a DOI.

base/math.jl Outdated
# as above, but only compute and return high double
# This algorithm, due to Dekker, computes the sum of
# two double-double numbers and return high double. References:
# [1] http://gdz.sub.uni-goettingen.de/dms/load/img/?PPN=PPN362160546_0018&DMDID=DMDLOG_0023&LOGID=LOG_0023&PHYSID=PHYS_0232
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This seems like an overly long and likely-to-be-transient URL. Anything shorter/more permanent?

Copy link
Contributor Author

@giordano giordano May 20, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The two links point to two versions of the same paper. The second one is a DOI, so should be permanent by definition of DOI, but the article is under a paywall there. Regarding the first link, I don't speak German, but the site looks like a digital library. http://www.digizeitschriften.de/dms/img/?PID=GDZPPN001170007 is a shorter URL and it's where the link on top of the page links to.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That second shorter link looks more likely to be stable – the other link looks like it's part of their internal content delivery setup.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@giordano giordano force-pushed the add22condh-comment branch from 0b146f6 to 60597c0 Compare May 20, 2017 18:42
@KristofferC KristofferC merged commit 3ef68f4 into JuliaLang:master Jun 26, 2017
@@ -716,7 +716,10 @@ end
## rem2pi-related calculations ##

function add22condh(xh::Float64, xl::Float64, yh::Float64, yl::Float64)
# as above, but only compute and return high double
# This algorithm, due to Dekker, computes the sum of
# two double-double numbers and return high double. References:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

returns the

DrTodd13 pushed a commit to IntelLabs/julia that referenced this pull request Jun 26, 2017
@giordano giordano deleted the add22condh-comment branch July 18, 2020 00:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants