mathjs
mathjs copied to clipboard
An extensive math library for JavaScript and Node.js
Is there a way to remove user-defined units? I create units for currency conversion using: ```javascript math.createUnit('USD', {aliases: ['usd']}) var rates = currencyRates //Rates in json format Object.keys(rates).map((currency) => {...
[BREAKING] Extend functionality of Range (to cover factorial variants) and make subclass of Matrix
This is a work-in-progress, proof-of-concept PR that allows one to calculate e.g. the 10th rising factorial of bignumber 8.5 by `math.prod(math.range(math.bignumber(8.5), math.bignumber(19.5))`. The major highlights include: * Making Range an...
**Q:** Without typing it into the mathjs.org REPL, what type is passed as the argument to `not` in `math.evaluate('not(sparse([[1, 1]])).valueOf()')` and what is the result of `math.evaluate('typeOf(sparse([[1, 1]])).valueOf()')` ??? **A:**...
Hi, this is the proof of concept discussed at #3537 It's more inline with what Jos and Glen suggested as my initial idea was flawed. This PR only shows two...
**Describe the bug** There does not seem to be any way to put a false value into a SparseMatrix. **To reproduce** In the mathjs.org REPL: ``` sparse([[true, false]]).valueOf() [[true, 0]]...
Breaking changes planned for mathjs v16: - [ ] Adopt reorganized config options (#3592) - [ ] uniformize bigint construction, see [#3375](https://github.com/josdejong/mathjs/pull/3375) - [ ] Expose and systematize the parsing...
I was taking a look at logical operations and noticed that there is no function for NAND and NOR operations. This type of operation is most commonly used in projects...
This PR implements a facility for including HISTORY sections in the block of documentation comments for each function, and retroactively adds such sections to a little over a dozen functions,...
This PR: * deprecates most existing config options, allowing for a translation table into the newly-supported options * reorganizes almost all options into one of three groups: `parse`, `compute`, or...
This PR fixes #3595 introduces two new arithmetic functions, num() and den(), which extract the numerator and denominator from Fraction objects respectively.