swift-numerics
swift-numerics copied to clipboard
Advanced mathematical types and functions for Swift
Please read the [#242 Using tests from “Violet - Python VM written in Swift”](https://github.com/apple/swift-numerics/issues/242) before. --- ## 🐰 Discussion Currently `Codable` uses `description` which is a `String` with radix 10....
This could conceivably be an SPM problem, but we are having problems using swift-numerics on windows. Full details [here](https://github.com/val-lang/val/actions/runs/3971484564/jobs/6808808944): ``` lld-link: error: duplicate symbol: __profcstatic (extension in RealModule):Swift.Double.log(Swift.Double) -> Swift.Double...
Please read the [#242 Using tests from “Violet - Python VM written in Swift”](https://github.com/apple/swift-numerics/issues/242) before. --- Tests for all of the `let n = BigInt(some_integer)` variants. ## 💀 Crash ```Swift...
Please read the [#242 Using tests from “Violet - Python VM written in Swift”](https://github.com/apple/swift-numerics/issues/242) before. --- ## ❌ Failures ```Swift func test_unaryMinus() { // -9223372036854775808 = Int.min // 'Int.min' negation...
Please read the [#242 Using tests from “Violet - Python VM written in Swift”](https://github.com/apple/swift-numerics/issues/242) before. --- === DO NOT MERGE! Discussion only. === ## 🐰 Discussion Tests copied and adapted...
Please read the [#242 Using tests from “Violet - Python VM written in Swift”](https://github.com/apple/swift-numerics/issues/242) before. --- All pass. ## 🐰 Discussion Those tests are a bit difficult to grasp. Especially...
Please read the [#242 Using tests from “Violet - Python VM written in Swift”](https://github.com/apple/swift-numerics/issues/242) before. --- ## ❌ Failures From what I see all of the `xor` tests fail. ```Swift...
Please read the [#242 Using tests from “Violet - Python VM written in Swift”](https://github.com/apple/swift-numerics/issues/242) before. --- All pass.
Please read the [#242 Using tests from “Violet - Python VM written in Swift”](https://github.com/apple/swift-numerics/issues/242) before. --- ## ❌ Failures ```Swift func test_binarySub() { // https://www.wolframalpha.com/input?i=-922337203685477587+-+%28-9223372036854775808%29 let lhs = BigInt("-922337203685477587")! let...
Please read the [#242 Using tests from “Violet - Python VM written in Swift”](https://github.com/apple/swift-numerics/issues/242) before. --- All pass.