spire icon indicating copy to clipboard operation
spire copied to clipboard

Powerful new number types and numeric abstractions for Scala.

Results 135 spire issues
Sort by recently updated
recently updated
newest added

Reproduce: ```scala scala> def x: Polynomial[Int] = PolySparse(List(Term(-1642198702, -1))) x: spire.math.Polynomial[Int] scala> x === x java.lang.ArrayIndexOutOfBoundsException: -1 at scala.runtime.ScalaRunTime$.array_update(ScalaRunTime.scala:76) at spire.math.poly.PolySparse.coeffsArray(PolySparse.scala:54) at spire.math.PolynomialEq.eqv(Polynomial.scala:556) at spire.math.PolynomialEq.eqv$(Polynomial.scala:555) at spire.math.PolynomialInstances0$$anon$14.eqv(Polynomial.scala:568) ... 36 elided...

good first issue

Currently, it is not clear whether `NRoot` provides `n`-th roots, polynomial root-finding (not present), or arbitrary powers (present, but unimplemented for `Algebraic` = throws).

https://github.com/typelevel/spire/blob/c0d1ca7809c7a78e9662e382cdb10bd7b96df6d2/core/src/main/scala/spire/math/Real.scala#L583 Pointed out by @s5bug on [Discord](https://discord.com/channels/632277896739946517/887187252701184070/918745819283357756). > hmm why does it do this instead of a bitshift? I assume it's something like 0b1.01 should round to 0b1.1, but you...

https://github.com/typelevel/spire/runs/4087869401?check_suite_focus=true#step:8:2761 ``` ==> X spire.math.NaturalScalaCheckSuite.x % y 0.04s munit.FailException: /home/runner/work/spire/spire/tests/shared/src/test/scala/spire/math/NaturalScalaCheckSuite.scala:63 62: } 63: } 64: Failing seed: psIjZNm1IyBn8L7f9KGsKxyXA7AOBp57E3I0zBqBlCL= You can reproduce this failure by adding the following override to your...

bug

Caliper attempts to measure how much time a given function takes to process by sending it various sizes of work, but Java 8's new compiler optimizations can remove loops that...

bug

`object BuildInfo` exists in both `spire-platform_2.11-0.16.0.jar` and `spire-util_2.11-0.16.0.jar`. Classes in `package spire.scalacompat` exists in both `spire-platform_2.11-0.16.2.jar` and `spire-util_2.11-0.16.2.jar`. This duplication prevents me to use R8 Android build tool.

There are benchmarks written for jmh and some written for `calipher` which are now commented out. Ideally we should port the latter to use `jmh`