Skip to content

asinh of smallish value is infinite #73642

Closed
@EbTech

Description

@EbTech

With rustc version 1.44.1, the following expression evaluates to minus infinity, instead of the correct value of approximately -18.7:

fn main() {
    let x = (-67886600.94408971f64).asinh();
    assert!(!x.is_infinite());
}

Perhaps taking the absolute value of the first self in the implementation of asinh would make it more numerically stable?

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugCategory: This is a bug.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions