mathjs
mathjs copied to clipboard
An extensive math library for JavaScript and Node.js
Hi, Just found out this edge case in the parser on v13.1.1 ```jl filter([10, 20], f(x, index) = index == 1) # yields [10, 20] # expected [10] filter([10, 20],...
Hi Jos, This PR addresses issue #3262 and introduces improvements to our recursion functions which increases performance in general: ## Key changes: - **`collection.deepMap` and `collection.deepForEach`:** are optimized to run...
After extending the benchmark file [`/test/benchmark/map.js`](https://github.com/josdejong/mathjs/blob/develop/test/benchmark/map.js), I was triggered by an outlier `abs(array)` which is more than 10x faster than the rest: ``` # develop abs(genericMatrix) x 54,106 ops/sec ±0.59%...
https://github.com/josdejong/mathjs/discussions/3480
Hello everyone! This pull request will try to address [this thread](https://github.com/josdejong/mathjs/discussions/3418) where this feature has already been discussed extensively. The main purpose is to determine the best unit of measurement...
Hi Jos, This addresses #2344 It changes the behavior of index to accommodate for scalar indices and the size of the output depends on the input. I'm still doing some...
**Describe the concerns** There are a number of outstanding parsing/evaluation issues, such as #2631, which it would be convenient to work on in conjunction with #3374 (in particular the implementation...
Breaking changes planned for mathjs v15: - [x] give unary % operator (percentage) higher precedence than binary % operator (modulus), see [#3432](https://github.com/josdejong/mathjs/pull/3432) - [x] fix kronecker product on vectors, see...
This is a convenience standing draft pull request for mathjs v15, to allow such things as automatic rebase as necessary to stay on top of mathjs v14.x development. The tracking...
**Describe the bug** The page https://mathjs.org/docs/datatypes/index.html includes the example `math.add('hello ', 'world')` with the expected return value `'hello world'` but this fails. It has the example `math.max('A', 'D', 'C')`, but...