bodigrim / integer-roots Goto Github PK
View Code? Open in Web Editor NEWInteger roots and perfect powers of arbitrary precision
Home Page: http://hackage.haskell.org/package/integer-roots
License: MIT License
Integer roots and perfect powers of arbitrary precision
Home Page: http://hackage.haskell.org/package/integer-roots
License: MIT License
Math/NumberTheory/Roots/General.hs:254:37: error:
• Couldn't match expected type ‘ghc-prim-0.8.0:GHC.Prim.Word#’
with actual type ‘ghc-prim-0.8.0:GHC.Prim.Word16#’
• In the first argument of ‘word2Int#’, namely
‘(indexWord16OffAddr# smallPrimesAddr# k#)’
In the first argument of ‘S#’, namely
‘(word2Int# (indexWord16OffAddr# smallPrimesAddr# k#))’
In the expression:
S# (word2Int# (indexWord16OffAddr# smallPrimesAddr# k#))
|
254 | $ map (\(I# k#) -> S# (word2Int# (indexWord16OffAddr# smallPrimesAddr# k#)))
|
https://buildd.debian.org/status/fetch.php?pkg=haskell-integer-roots&arch=s390x&ver=1.0.2.0-2&stamp=1696945515&raw=0
https://buildd.debian.org/status/fetch.php?pkg=haskell-integer-roots&arch=ppc64&ver=1.0.2.0-2&stamp=1696946613&raw=0
./Math/NumberTheory/Roots/General.hs:174: failure in expression `map isPerfectPower [0..10]'
expected: [True,True,False,False,True,False,False,False,True,True,False]
but got: [True,True,False,False,True,*** Exception: divide by zero
^
./Math/NumberTheory/Roots/General.hs:193: failure in expression `map highestPower [0..10]'
expected: [(0,3),(1,3),(2,1),(3,1),(2,2),(5,1),(6,1),(7,1),(2,3),(3,2),(10,1)]
but got: [(0,3),(1,3),(2,1),(3,1),(2,2),*** Exception: divide by zero
^
Examples: 23 Tried: 21 Errors: 0 Failures: 2
Test suite integer-roots-doctests: FAIL
ghc-bignum < 1.3
currently prevents this. I'm not sure if there are any backwards-incompatible changes, however. I'm going to try to jailbreak and build this, and see if there are any problems that arise by just adjusting version bounds.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.