Jos de Jong
e8a50259e7
Remove redundant piece 0*? in regex (see #2363 )
2021-12-29 13:29:39 +01:00
Jos de Jong
91be05fdcc
Update history and authors list
2021-12-29 13:20:35 +01:00
Hyeonjong
43e705e7f6
Add simplify rule ( #2365 )
...
* Add simplify rule (Fix #2156 )
* Add some tests
* Add more tests
* Fix simplify rule
2021-12-29 13:19:30 +01:00
Raku Zeta
677be84b8a
Update constants.md ( #2371 )
...
Enclose math expressions in ticks to prevent the `*` symbol from being treated as Markdown.
2021-12-29 09:38:57 +01:00
Jos de Jong
53b3f602fd
Update authors list
2021-12-22 16:18:49 +01:00
Jos de Jong
55cf958655
Publish v10.0.1
v10.0.1
2021-12-22 16:12:27 +01:00
Akira Cai
8c5c5b03b6
Update expressions.js ( #2366 )
2021-12-22 08:25:01 +01:00
Bartosz Leoniak
ccd6ad9aaf
refactor(gamma function): use lanczos approximation with comments ( #2364 )
...
* refactor(gamma function): use lanczos approximation with comments
* tests: additional checks for specific numbers
* tests: check for value close to re(0.5)
2021-12-19 17:59:39 +01:00
Bartosz Leoniak
d2583b0d67
fix(gamma function): use reflection formula to handle negative values ( #2362 )
...
* fix(gamma function): use reflection formula to handle negative values
* lint
2021-12-15 11:33:04 +01:00
Jos de Jong
4ce71856af
Publish v10.0.0 (and update devDependencies)
v10.0.0
2021-11-03 16:18:31 +01:00
Thomas Lupin
494ae2a2f0
Fix toHTML type ( #2343 )
...
Co-authored-by: Jos de Jong <wjosdejong@gmail.com>
2021-11-03 16:08:48 +01:00
Jos de Jong
f3bea2125e
Apply Typescript improvements of commit fc5c202e again
2021-11-03 16:06:15 +01:00
Jos de Jong
975e42fca4
Publish v9.5.2
v9.5.2
2021-11-03 15:51:32 +01:00
Jos de Jong
fd75ee664f
Revert TypeScript improvements of v9.5.1 because they contain breaking changes (see #2339 , #2332 )
2021-11-03 15:49:44 +01:00
Jos de Jong
2833317281
Fix error in the docs (see #2332 )
2021-10-23 11:22:49 +02:00
Jos de Jong
245c856c4e
Publish v9.5.1
v9.5.1
2021-10-13 12:31:42 +02:00
Jos de Jong
33bbc8c390
Update history and authors list
2021-10-13 12:27:53 +02:00
Diana Toader
2ce542c131
fix typescript bug for apply function #2313 ( #2330 )
...
Co-authored-by: Diana Toader <dianatoader@Dianas-MacBook-Pro.local>
2021-10-13 12:25:06 +02:00
Jos de Jong
e6f3123d20
Improve description of format option precision (see #2328 )
2021-10-02 10:34:46 +02:00
Jos de Jong
d4881a030f
Update HISTORY.md and AUTHORS
2021-10-02 09:44:07 +02:00
Jos de Jong
fc5c202e53
Merge branch 'typescript_improvements' of https://github.com/LearnSomethingTeam/mathjs into LearnSomethingTeam-typescript_improvements
2021-10-02 09:41:33 +02:00
Jos de Jong
0afcd44cfd
Publish v9.5.0
v9.5.0
2021-09-22 21:16:27 +02:00
Jos de Jong
d8f44ee6ce
Update HISTORY.md and AUTHORS
2021-09-22 11:47:29 +02:00
Ramesh Vijayaraghavan
c7f4c53483
Support for Percentage Operation ( #2304 )
...
* Support for Percentage Operation
* Fixed Style issue
* Added Test case to check for modulo followed by pi
* Support for % addition and % subtraction
* Fixed Documentation comment
* Support - Should not calculate mod for negative divisor
* Updated Docs
Co-authored-by: Jos de Jong <wjosdejong@gmail.com>
2021-09-22 11:45:37 +02:00
Jos de Jong
8891d16e92
Add a SECURITY.md file
2021-09-22 09:29:25 +02:00
Jos de Jong
ed0fe9678e
Fix #2319 : make the API of Parser.evaluate consistent with math.evaluate: support a list with expressions as input
2021-09-20 21:42:36 +02:00
Josh Hansen
8317eb5545
Re-fix the isConditionalNode typo that was corrected in 9.4.5
2021-09-17 01:54:32 -07:00
Josh Hansen
d01d9ea101
Redefine MathNode as a union type of interfaces implementing MathNodeCommon
2021-09-17 01:48:11 -07:00
Josh Hansen
402fa0e362
Array<SimplifyRule> -> SimplifyRule[]
2021-09-17 01:46:33 -07:00
Josh Hansen
8a80ed83a4
Add ConstantNode as an alias for MathNode and return it
2021-09-17 01:46:27 -07:00
Josh Hansen
0a9881e3cf
Make AssignmentNode extend MathNode
2021-09-17 01:46:22 -07:00
Josh Hansen
386f21efbd
Various improvements to the Typescript typings
...
Allows instantiation of classes (e.g. new ConstantNode(5))
Corrects the default invocation of `rationalize` (the signatures were in
the wrong order---MathNode is now the default return type)
Makes `create` return a `MathJsStatic` rather than
`Partial<MathJsStatic>` which is painful to use and largely unnecessary
because most fields on MathJsStatic are already optional.
Adds convenient aliases for `subtract`
Adds `implicit?: boolean` to MathNode
Make the unit on Unit.toNumber and Unit.toNumeric optional like it is in practice
Represent math.simplify.rules and math.simplify.simplifyCore
2021-09-17 01:46:16 -07:00
Jos de Jong
a0e6e34b3f
Update history.md
2021-09-15 22:10:29 +02:00
Wim Devos
d3c63677d0
Update SetCartesian documentation ( #2310 )
...
* Update SetCartesian documentation
* Remove trailing spaces
Co-authored-by: Jos de Jong <wjosdejong@gmail.com>
2021-09-15 22:08:43 +02:00
Jos de Jong
895a7a6461
Publish v9.4.5
v9.4.5
2021-09-15 12:27:50 +02:00
Jos de Jong
5601552c08
Revert mocha to v8 again (with v9, 5 unit tests fail on IE11 with unclear reason)
2021-09-15 12:25:11 +02:00
Jos de Jong
db39237c0f
Update browser versions in browserstack tests
2021-09-15 12:24:40 +02:00
Jos de Jong
f54a91e898
Update devDependencies
2021-09-15 11:36:10 +02:00
Jos de Jong
14390dc0b9
Update history and authors list
2021-09-15 11:15:45 +02:00
Tom Larkworthy
efe367cad5
Fix performance problem with deepStrictEqual ( #2301 )
...
Issue #2300
deepStrictEqual was called twice for each property
Co-authored-by: Tom Larkworthy <tomlarkworthy@Toms-MacBook-Air.local>
Co-authored-by: Jos de Jong <wjosdejong@gmail.com>
2021-09-15 10:25:18 +02:00
Michal Grňo
37cc651df2
Fix typo in isConditionalNode in types/index.d.ts ( #2307 )
...
`isConditionalnode` → `isConditionalNode`
Co-authored-by: Jos de Jong <wjosdejong@gmail.com>
2021-09-15 09:52:38 +02:00
Michal Grňo
64909e7fc2
add isRelationalNode to MathNode in types/index.d.ts ( #2308 )
...
Co-authored-by: Jos de Jong <wjosdejong@gmail.com>
2021-09-15 09:42:29 +02:00
Kiran Chand
34e461aec4
Adding type definition for hasNumericValue ( #2281 )
...
* adding hasNumericValue to types
* adding hasNumericValue to types
Co-authored-by: write2kcl <write2kcltech@alamy.com>
2021-09-15 09:29:05 +02:00
Jos de Jong
f048e2c8d7
Upgrade package-lock.json to "lockfileVersion": 2 (using Node.js v16, npm v7). See #2266
2021-07-07 15:48:02 +02:00
Jos de Jong
2f8f088ab1
Publish v9.4.4
v9.4.4
2021-07-07 10:35:58 +02:00
Jos de Jong
e8a4123fc2
Fix #2258 : drop official support for nodejs 10
2021-07-07 10:29:09 +02:00
Jos de Jong
6560f65740
Update dependencies, history, and authors
2021-07-07 10:26:42 +02:00
Michal Grňo
c7b09fea36
Add core-js polyfill for lib/browser ( #2266 )
...
* added core-js polyfills for lib/browser/math.js
* exclude defaultInstanceCorejs from lib/esm and lib/cjs
* removed a semicolon
* changed useBuiltIns to usage
Co-authored-by: Jos de Jong <wjosdejong@gmail.com>
2021-07-07 09:48:42 +02:00
Michal Grňo
4dbf40460b
Fix intersect not returning null for matrix input ( #2270 )
...
* refactored intersect, fixed it not returning null for matrix input
* intersect: improved flattening algorithm, added tests
Co-authored-by: Jos de Jong <wjosdejong@gmail.com>
2021-07-07 09:16:22 +02:00
CRIMX
fe7d8a7100
docs(expressions): fix incorrect example link ( #2273 )
2021-07-07 08:28:01 +02:00