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

Cotangent for values where tangent is undefined gives Invalid input #2318

Open
allamassal opened this issue Apr 4, 2025 · 0 comments
Open

Comments

@allamassal
Copy link

Describe the bug

The cotangent function gives the "Invalid input" error for values where tangent is undefined (such as 90, 270, and 450 degrees), even though it is well defined and equal to 0 at these values. This is because the cotangent function is internally handled as 1/(tan x), so it tries to do 1/(tan 90), and gives the error because tan 90 is undefined.

Steps To Reproduce

  1. Enter 90 if the calculator is in degree mode (or pi/2 if the calculator is in radian mode, or 100 in gradian mode)
  2. Click cot under Trigonometry (or just use J on the keyboard)
  3. Invalid input

Expected behavior

The result would be 0.

Screenshots

Image

Device and Application Information

  • OS Build: Windows 10 Home build 19045.5608
  • 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.

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

No branches or pull requests

1 participant