28 Commits

Author SHA1 Message Date
David Contreras
eded7e1dc3
feat: nearly equal with relative and absolute tolerance (#3152)
* nearlyEqual with absolute and relative tolerances

* Format

* nearlyEqual for bigNumber

* Added skip for NaN

* Reduce diff a bit

* Issue with examples in jsdcos

* Updated all calls for nearlyEqual

* Fixed failing tests

* Changed epsilon to relTol, absTol

* Changed references to epsilon in docs and tests

* Added warning for config.epsilon

* Fix warning in zeta.test

* Added config test

* Added sinon to test console.warn

---------

Co-authored-by: Jos de Jong <wjosdejong@gmail.com>
2024-05-15 10:56:11 +02:00
Jos de Jong
297d2e0c55 Fix: #2608: describe changing epsilon when configuring BigNumber. 2022-06-29 10:39:02 +02:00
jos
078f1dd69f Renamed methods .eval to .evaluate, updated all docs and examples accordingly 2019-01-16 10:11:32 +01:00
jos
b3b96749bf Refactored var into const/let, and removed a lot of semicolons 2018-06-13 12:21:14 +02:00
jos
1ecfdf1a0e Implemented BigNumber support in function arg() 2016-11-05 19:52:22 +01:00
jos
c9591339b1 Throw an error for implicit conversion between BigNumber and Fraction (see #710) 2016-11-05 19:44:04 +01:00
jos
4306200c4c Implemented method Node.equals(other) for all nodes of the expression parser 2016-11-05 16:27:23 +01:00
jos
15aca5e4d0 Changed casing of the values of config options number and matrix to match the actual name of the classes. 2016-03-04 19:41:54 +01:00
jos
a92b978036 Merged develop into v2 2015-06-07 15:57:41 +02:00
Devan Patel
99d0a557fa Update bignumbers.md 2015-05-15 15:12:24 -04:00
jos
0c1e9deeeb Implemented configuration value {number: 'fraction'}. Added docs and example for fractions. 2015-05-12 14:40:47 +02:00
jos
3e66fcd9ab Updated history and docs 2015-02-17 15:15:47 +01:00
jos
beb4e2e536 Released version 1.3.0 2015-02-09 21:43:00 +01:00
jos
193cc056db Removed require('mathjs') here and there in the docs 2014-06-24 13:19:10 +02:00
jos
7d84e4daf0 Math.js now immediately returns a default instance of mathjs, no need to create an instance every time you want to use the library. 2014-06-20 23:11:14 +02:00
jos
082265a184 Changed the default number of significant digits for BigNumbers from 20 to 64. 2014-06-11 21:56:58 +02:00
jos
86f2b6103d Updated list with function not supporting bignumbers 2014-05-07 21:16:12 +02:00
josdejong
83b41a16ab Implemented BigNumber support for functions exp, log, and log10. 2014-04-06 12:01:10 +02:00
josdejong
45550e5ffb Changed configuration option decimals to precision 2014-04-06 11:14:01 +02:00
josdejong
d19e7ea570 Switched to module decimal.js for BigNumber support, instead of bignumber.js. 2014-04-04 21:08:33 +02:00
Fabrice Colas
1da52c2837 Correct typo in bignumbers.md 2014-03-12 23:02:20 -07:00
josdejong
e4cf5395a5 Improved documentation on the number configuration 2014-01-03 22:34:41 +01:00
josdejong
f2f1ae1f72 Renamed and flattened configuration settings 2013-12-07 11:39:45 +01:00
josdejong
a9b49bf929 Fixed some typos in the docs 2013-11-28 21:55:44 +01:00
josdejong
ed3e450ccb Fixed a type in the docs 2013-11-28 17:51:33 +01:00
josdejong
04980af87f Added some more explanation on bignumbers 2013-11-28 17:44:52 +01:00
josdejong
5baa3901cd Fixed some typos 2013-11-27 13:07:05 +01:00
josdejong
335dccfa5b Moved docs on data types in a separate directory 2013-11-27 12:14:47 +01:00