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

new Decimal("(e^x)1") returns Decimal with negative layer if x is negative #167

Closed
James103 opened this issue Apr 25, 2024 · 1 comment
Closed
Labels
bug Something isn't working

Comments

@James103
Copy link

James103 commented Apr 25, 2024

For example, new Decimal("(e^-8.1)1") returns a Decimal whose layer is -8.1.

Similarly, new Decimal("(e^-22.1)1") returns a Decimal whose layer is -22.1.

Both Decimal objects have invalid layer values and may not work properly with operations.

@James103 James103 changed the title new Decimal("(e^x)1") returns Decimal with negative layer if x is negative new Decimal("(e^x)1") returns Decimal with negative layer if x is negative Apr 25, 2024
@MathCookie17 MathCookie17 added the bug Something isn't working label Jul 6, 2024
MathCookie17 added a commit that referenced this issue Jul 8, 2024
* Added penta_log and linear_penta_root (the two inverses of pentation)
* Added the "floored" parameter to mod (when this parameter is true, it performs floored modulo instead of truncated division modulo)
* Fixed several issues ( #166, #167, #170, and #171 ); #170 in particular is a new feature, that being constants for the maximum value of a Decimal.
@MathCookie17
Copy link
Collaborator

This is a pretty useless case, seeing as (e^x)1 for any x <= -2 is automatically NaN, but fixed anyway.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants