jos
2d7a407ee2
Create mainAll.js. Change algorithm functions to be internal factory functions (not injected). Convert more functions and data types.
2018-11-07 16:43:06 +01:00
jos
a2ae756fd1
Remove semicolons
2018-10-31 21:18:51 +01:00
jos
247aeabffa
Refactor all unit tests to ES6 import/export
2018-10-31 21:17:23 +01:00
greenkeeper[bot]
c5971b371a
Update standard to the latest version 🚀 ( #1226 )
...
* chore(package): update standard to version 12.0.0
* update to new lint version with --fix
I believe this mainly adds whitespace to `{}`'s.
* Replace assert.equal with assert.strictEqual
This breaks a lot of tests which I will endevour to fix in the next
commits.
* Fix most errors due to assert.strictEquals
Some instances of `strictEquals` are replaced by `deepEquals`.
`toString` has been used to make some string comparisions explicit.
Tests will still fail untill #1236 and #1237 are fixed.
* Fix assertion erros due to -0
With node 10, assert.strictEqual no longer considers `0 === -0`.
I missed these first time round as I was using node 8.
* Put toString correct side of bracket
I was converting the constructor to a string rather
than the result of the computation. Oops.
* Fixed #1236 : quantileSeq has inconsistant return
* Update package-lock
* Fixed #1237 : norm sometimes returning a complex number instead of number
* Fix cli tests
* More changes for standardjs, and fixes in unit tests
2018-09-08 16:33:58 +02:00
jos
1f0a37a0cb
Split initialized 'const' declarations into multiple statements
2018-06-13 15:31:37 +02:00
jos
17f07ec098
Fixed incompatibility with v4 (index.js file)
2018-06-13 14:02:50 +02:00
jos
b3b96749bf
Refactored var into const/let, and removed a lot of semicolons
2018-06-13 12:21:14 +02:00
jos
024b2a9e26
Fix most lint errors using npx standard --fix
2018-06-10 20:28:27 +02:00
jos
635cd0b574
Revert using /lib/ in tests, use /src/ again. Fixed coverage testing. WIP
2018-06-06 22:11:52 +02:00
jos
79071b5e4f
Fixed npm run test:browser not working (WIP)
2018-06-06 21:30:41 +02:00
jos
0c084b8e20
npm test working now
2018-06-06 15:36:36 +02:00
jos
d08223e7a5
Implemented functions equalText. See #1085 .
2018-05-27 14:13:17 +02:00
jos
94accc1889
Implemented function compareText, see #1085
2018-05-26 18:41:31 +02:00
jos
4469f6bd0c
Remove support for implicit conversion of null to 0. See #830 .
2018-01-23 20:26:38 +01:00
jos
b9c30ebcc7
Updated some docs
2018-01-23 16:43:44 +01:00
jos
326c9fb0de
Fixed #680 : compare strings by their numerical value instead of alphabetical order
2018-01-23 15:34:49 +01:00
jos
6bbff5f54f
Improved natural sorting for numeric types, matrix types, and objects
2017-06-30 11:16:42 +02:00
jos
96674094d6
Compare numeric types first by value, then by type
2017-06-30 10:02:26 +02:00
jos
0557e7ae1f
Back to compareNatural WIP (see #837 )
2017-06-25 21:02:59 +02:00
jos
ae7728a1d4
Renamed compareNatural to deepStrictCompare
2017-06-23 13:50:27 +02:00
jos
033735c5e2
Implemented support for all types in compareNatural
2017-06-23 13:40:38 +02:00
jos
d85f54cf77
Reverted ordering of complex numbers in relational functions. Use natural sort in set functions (See #837 )
2017-06-18 21:42:55 +02:00
jos
151bc655d6
Implemented a first version of math.compareNatural
2017-06-18 21:13:31 +02:00
Gulfaraz Yasin
eda65d2228
used different approach for comparing complex numbers - resolves #837
2017-06-04 22:29:55 +05:30
Gulfaraz Yasin
275b09dce8
support to compare complex numbers #837
2017-05-10 19:05:49 +05:30
jos
a1d91e0f84
Implemented nearly equal comparison for relational functions (equal, larger, smaller, etc.) when using BigNumbers
2016-02-28 14:03:40 +01:00
jos
d15751b041
Fixed operations with mixed fractions and numbers be converted to numbers instead of fractions.
2015-07-28 20:48:55 +02:00
jos
ec3ad5461f
Added Fraction support for cube and square. Fixed operations on Fractions mutating the original fraction.
2015-05-12 21:26:51 +02:00
jos
a0ad13b9e0
Added support for Fraction in functions compare, equal, larger, largerEq, smaller, smallerEq, unequal.
2015-05-12 13:46:50 +02:00
rjbaucells
ff2ddc51ae
unequal updates
2015-05-03 22:43:56 -04:00
rjbaucells
36ffb9444f
smallerEq updates
2015-05-03 22:38:08 -04:00
rjbaucells
1d7e9bb374
smaller updates
2015-05-03 22:33:16 -04:00
rjbaucells
5293c22c10
largerEq updates
2015-05-03 22:28:35 -04:00
rjbaucells
5880adfd8c
larger updates
2015-05-03 22:23:50 -04:00
rjbaucells
2d8410a5fa
equal updates
2015-05-03 19:05:21 -04:00
rjbaucells
71fa09dc66
compare & algorithm05 updates
2015-05-03 17:40:38 -04:00
jos
6e96d5a808
Merge branch 'develop' into v2
...
Conflicts:
HISTORY.md
bower.json
component.json
dist/math.js
dist/math.map
dist/math.min.js
lib/function/arithmetic/abs.js
lib/function/probability/gamma.js
lib/version.js
package.json
2015-04-22 21:43:56 +02:00
Max Bruckner
8ad525b66e
util/latex: get rid of many unnecessary curly braces
2015-04-19 11:08:00 +02:00
jos
349e9845e8
Merge branch 'develop' into v2_merge
...
Conflicts:
HISTORY.md
bower.json
component.json
dist/math.js
dist/math.map
dist/math.min.js
docs/reference/units.md
lib/version.js
package.json
test/function/construction/chain.test.js
test/function/matrix/det.test.js
test/function/matrix/transpose.test.js
test/function/utils/import.test.js
2015-04-13 21:42:43 +02:00
Max Bruckner
0868987cdf
util/latex: use ":=" for assignments and '=' 'equal'
2015-04-05 14:29:14 +02:00
Max Bruckner
7adf0ebc53
LaTeX tests for functions
2015-04-05 14:29:10 +02:00
jos
c3470a2d10
Refactored compare, deepEqual, largerEq, smallerEq, and unequal to typed-functions.
2015-03-08 15:44:39 +01:00
jos
1d0ba42381
Refactored larger and equal
2015-02-27 09:21:18 +01:00
jos
150add879a
Better error message on conversion of number to BigNumber when having more than 15 digits
2015-02-16 09:31:41 +01:00
jos
8edf472478
Upgraded to typed-function v0.6.1, more functions refactored.
2015-02-07 20:29:32 +01:00
jos
04ba7ec8e8
Minor performance improvements in larger, largerEq, smaller, smallerEq
2015-01-29 20:29:50 +01:00
jos
19c2024524
Halfway reworking more functions (lot of stuff is broken at this point)
2015-01-17 21:09:39 +01:00
jos
da306e26ed
Implemented support for null in all functions (see #205 )
2014-08-09 16:27:11 +02:00
jos
8a12c8e9bc
Fixed #200 : A new instanceof of math.js must now be created as math.create([options]) instead of math([options])
2014-08-03 21:42:12 +02:00
jos
59de16801e
Renamed function category "Comparison" with "Relational"
2014-07-20 12:40:34 +02:00