Comments (1)
Fixed. toString (and thus new Decimal()) will now handle fractional e^N values.
normalize still doesn't work with fractional layers, though. This is because there are two different approximations for tetration and normalize won't know which one to use, whereas toString has a parameter that lets you choose which one (as with the rest of break_eternity, analytic is used by default when possible, the parameter can be used to force linear). I'm not sure what to do in this case. I'm closing the issue for now because the case you actually complained about is fixed - new Decimal should no longer be able to create Decimals with fractional layer - but feel free to re-open it if you think that fromComponents still possibly creating invalid Decimals is a problem.
from break_eternity.js.
Related Issues (20)
- Can't convert BigInt to Decimal without setting its value to 0 HOT 8
- different results when expexting the same result HOT 5
- `Decimal.lambertw("ee4992767175317001")` errors instead of returning a value HOT 2
- The next step HOT 5
- [enhancement] I think I’ve figured out how to do arbitrary-height super-roots. HOT 3
- Tetration/iteratedexp has incorrect behavior for large heights on small bases with large payloads HOT 3
- Wrong String for reciprocals HOT 1
- Wrong factorial approximation HOT 3
- `Decimal.lambertw` occasionally spikes with inputs around the ee31 range HOT 1
- Unexpected NaN from sqrt() HOT 1
- Decimal.isValid() ?
- `new Decimal("(e^x)1")` returns `Decimal` with negative `layer` if `x` is negative HOT 1
- The normalization of `new Decimal(-Infinity)` breaks some operations and may be incorrect HOT 3
- Throws a TypeError with standard EcmaScript class fields
- Max Value constant HOT 8
- Some constants don't match break_infinity.js documentation HOT 6
- -Infinity times -Infinity is Infinity, not -Infinity. HOT 1
- new Decimal(2).pow(3) is 7.999999999999999 HOT 1
- How to run unit tests? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from break_eternity.js.