Skip to content

Inverse hyperbolic sine and cosine for values larger than 1e100 gives error #2363

@allamassal

Description

@allamassal

Describe the bug

The inverse hyperbolic sine and cosine functions give the "Invalid input" error for values greater than or equal to 10^100. This is because the limit for all trig functions in the calculator is 10^100, which makes sense for the regular trig functions (which require more precision to calculate as the input gets larger), but this is also applied to the hyperbolic trig functions, as seen in the if statement on lines 373-374 in scicomm.cpp. Because sinh and cosh are exponentially growing functions, there is no real reason for their inverses to have such a limit.

Steps To Reproduce

  1. Enter a value greater than or equal to 10^100
  2. Try sinh^-1 or cosh^-1
  3. Invalid input

Expected behavior

The function would be computed as expected.

Screenshots

Image

Device and Application Information

  • OS Build: Windows 11 Home build 26100.4652
  • Architecture: 64-bit
  • Application Version: 11.2502.2.0
  • Region: en-US
  • Dev Version Installed: none

Additional context

Requested Assignment

I'm just reporting this problem. I don't want to fix it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions