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

std.math log* functions only have real versions #10356

Open
dlangBugzillaToGithub opened this issue Oct 31, 2018 · 3 comments
Open

std.math log* functions only have real versions #10356

dlangBugzillaToGithub opened this issue Oct 31, 2018 · 3 comments
Labels
Arch:x86_64 Issues specific to x86_64 OS:Linux Issues specific to Linux Severity:Enhancement

Comments

@dlangBugzillaToGithub
Copy link

ldti reported this on 2018-10-31T04:00:59Z

Transfered from https://issues.dlang.org/show_bug.cgi?id=19346

CC List

  • john.michael.hall

Description

The std.math functions 'log', 'log10', 'log1p', 'log2' and 'logb' only have versions that accept a real argument and return a real value. Many other std.math functions, e.g., 'sin', 'cos', etc., also have versions that accept and return double as well as float. It would be preferable if the former group were consistent with the rest.
@dlangBugzillaToGithub
Copy link
Author

john.michael.hall commented on 2023-02-06T17:02:30Z

I believe this can be closed with version 2.102.0.

@dlangBugzillaToGithub
Copy link
Author

john.michael.hall commented on 2023-02-27T23:10:23Z

Not entirely, it seems the additions of `log1p` overloads for float and double have messed with the accuracy of those functions (beyond what is to be expected as a result of not doing intermediate calculations with reals). See: https://issues.dlang.org/show_bug.cgi?id=23750

@jmafc
Copy link

jmafc commented Dec 1, 2024

FWIW, since I'm the one who opened the issue originally and I'm no longer using D, I don't mind if it's closed.

@LightBender LightBender removed the P4 label Dec 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Arch:x86_64 Issues specific to x86_64 OS:Linux Issues specific to Linux Severity:Enhancement
Projects
None yet
Development

No branches or pull requests

3 participants