* 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>
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
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>
* 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>
* 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>
* fix toTex(): remove row delimiter on the last row
* remove row delimiter on the last row (use map and join instead of forEach)
* fix ArrayNode.toTex() unit tests incorrectly expecting a row delimiter on the last row
* added toTex() tests for nested cases
* fixed ArrayNode.toTex() for nested cases
* removed redunant variable
* changed BigNumber to a class that extends Decimal.clone(...)
* it works... if you patch decimal.js
* added a test that checks if sum of Decimals works
* minor improvement of code quality
* updated Decimal.js to 10.3
* removed the optional chaining operator to keep compat w/ Node 12
* removed try/catch from isBigNumber
Co-authored-by: Jos de Jong <wjosdejong@gmail.com>
* fixing incorrect typing error for floor function
* removing prettier auto format
Co-authored-by: write2kcl <write2kcltech@alamy.com>
Co-authored-by: Jos de Jong <wjosdejong@gmail.com>