math icon indicating copy to clipboard operation
math copied to clipboard

Results 12 math issues
Sort by recently updated
recently updated
newest added

Using (require math), we can compute (median < data), where data is a list of numbers. When data length is even, then normally the median is computed by averaging the...

Now that Typed Racket has Shallow & Optional modes, we might be able to make the math library work for untyped code without crazy slowdowns. But it's not as simple...

We ought to use Github Actions to validate PRs.

Algorithms for calculating gamma, log-gamma and digamma in the complex field

PR #71 introduced a regression in the accuracy of some double-flonum functions: `fl2sqrt`, `fl2sqr`, `fl2/`, `flsqrt/error`. This was to avoid using the translated code from crlibm for licensing reasons. As...

It would be ideal if `factorize` is injective. It is not right now due to how `(factorize 0)` = `(factorize 1)` = `'()`. Changing the type of the domain to...

Random testing (see #35) discovered a number of cases where functions such as `fl2+` and `fl2-` have substantial error (32 ulps) and functions such as `fl2exp`, `flexp/error`, and `fl2expm1` have...

If by accident bfsqrt is given a non-bigfloat the error message doesn't come from the Racket layer. ``` Welcome to Racket v7.6. > (require math/bigfloat) > (bfsqrt 2) ; mpfr->C:...

It'd be nice to have matrices and arrays be serializable/faslable.

enhancement

I wish math/flonum (or racket/flonum) had an `flzero?` function. There are flonum-specific functions for most other arithmetic functions, but not `zero?`. Interestingly, math/flonum has `fl2zero?` for double-doubles, but nothing for...