josdejong
|
4a99e03055
|
All arithmetic functions not supporting BigNumbers downgrade BigNumbers to Numbers
|
2013-11-23 10:55:39 +01:00 |
|
josdejong
|
26c0332883
|
On mixed Number/BigNumber inputs, all operators now downgrade the inputs if Number is a fraction.
|
2013-11-23 10:28:42 +01:00 |
|
josdejong
|
bf8eb9a01b
|
Implemented setting number.precision for big numbers.
|
2013-11-21 14:05:23 +01:00 |
|
josdejong
|
3a4c1c5ef0
|
Internally renamed variable options to settings
|
2013-11-21 13:39:24 +01:00 |
|
josdejong
|
80b8b34042
|
Implemented function config
|
2013-11-21 13:13:26 +01:00 |
|
josdejong
|
b366d97a20
|
Function resize now has an extra optional parameter defaultValue
|
2013-11-21 12:09:12 +01:00 |
|
josdejong
|
ea51c6c86c
|
math.options is no longer exposed as property
|
2013-11-21 10:37:04 +01:00 |
|
josdejong
|
21e4f7f160
|
Neatly splitted calculations with Numbers and Booleans
|
2013-11-19 21:34:20 +01:00 |
|
josdejong
|
3f11056330
|
Implemented BigNumber support for math.format.
|
2013-11-16 19:27:18 +01:00 |
|
josdejong
|
ac41566de8
|
Wrapped all bignumber functions available in the bignumber.js library
|
2013-11-16 17:49:16 +01:00 |
|
josdejong
|
52337e4b94
|
Integrating the bignumber.js library in math.js. This is awesome!
|
2013-11-16 14:34:35 +01:00 |
|
josdejong
|
dd662ba948
|
Functions don't allow arguments of unknown type anymore
|
2013-11-15 21:33:38 +01:00 |
|
josdejong
|
d9090588b0
|
Implemented function math.resize
|
2013-11-15 21:23:22 +01:00 |
|
josdejong
|
bd318ad837
|
Function size now adheres to the option matrix.defaultType for scalar input
|
2013-11-07 22:56:21 +01:00 |
|
josdejong
|
5f1aee3550
|
Some fixes and improvements in the resize function
|
2013-11-07 22:42:21 +01:00 |
|
josdejong
|
a19b1a1285
|
Functions ones and zeros now return an empty matrix instead of a number 1 or 0 when no arguments are provided
|
2013-11-07 17:16:34 +01:00 |
|
josdejong
|
569f9ec113
|
Fixed indentation
|
2013-10-31 20:21:05 +01:00 |
|
josdejong
|
9485cb2459
|
Simplified/improved typeof function
|
2013-10-31 11:52:03 +01:00 |
|
josdejong
|
b071e5daba
|
Removed utility functions isScalar, toScalar, isVector, toVector from Matrix and Range.
|
2013-10-31 10:54:42 +01:00 |
|
josdejong
|
d2e55a0132
|
Math.js must be instantiated now, static calls are no longer supported
|
2013-10-26 15:00:06 +02:00 |
|
josdejong
|
04c41fb42e
|
Implemented advanced options in format to customize precision, scientific/fixed/auto notation (see #100).
|
2013-10-24 15:12:04 +02:00 |
|
Jos de Jong
|
13b7e6acee
|
Merge pull request #103 from guillermobox/develop
Reduce functionality
|
2013-10-24 04:31:44 -07:00 |
|
Guillermo Indalecio Fernandez
|
a998e4bb86
|
Added more powerful tests and fixed code for mean
|
2013-10-24 13:22:41 +02:00 |
|
Guillermo Indalecio Fernandez
|
540bb7af9b
|
Changed reduce calls from one-based to zero-based
|
2013-10-24 12:49:36 +02:00 |
|
Guillermo Indalecio Fernandez
|
da1d23bc0a
|
Fixed tests and reduce function
|
2013-10-22 20:16:04 +02:00 |
|
Guillermo Indalecio
|
f43523b301
|
Added reduce calls from "mean" function
|
2013-10-22 19:27:05 +02:00 |
|
Guillermo Indalecio
|
b0ce2686c3
|
Added min test for n-dimensional matrices
|
2013-10-22 19:16:50 +02:00 |
|
Guillermo Indalecio
|
297e1869af
|
Added another multidimensional test for max
|
2013-10-22 16:24:14 +02:00 |
|
Guillermo Indalecio Fernandez
|
020dfa0e46
|
Added test for max, it seems to work in 2D
|
2013-10-22 11:06:00 +02:00 |
|
josdejong
|
1db989a2d7
|
Changed scientific notation of number formatting back
|
2013-10-21 20:51:48 +02:00 |
|
josdejong
|
17f208df18
|
Some nice improvements to formatting numbers
|
2013-10-21 12:07:07 +02:00 |
|
josdejong
|
432d3e0574
|
Fixed a bug in formatting numbers with a limited precision. Added more unit tests.
|
2013-10-21 11:18:59 +02:00 |
|
josdejong
|
c8a289a08c
|
Removed unnecessary .js suffix in module require statements
|
2013-10-20 14:01:31 +02:00 |
|
josdejong
|
f42f5698cb
|
Removed global option options.format.precision. When formatted, numbers are no longer rounded to 5 digits by default.
|
2013-10-20 13:40:28 +02:00 |
|
josdejong
|
abff8efdbc
|
Mixed matrix input now always returns a Matrix (needed to mace collection static)
|
2013-10-19 22:01:10 +02:00 |
|
josdejong
|
e61d2f965b
|
Fixes in the new function math.format(precision). Updated docs and tests.
|
2013-10-19 21:44:54 +02:00 |
|
josdejong
|
a4bda611df
|
Implemented function print (splitted from function format)
|
2013-10-19 18:10:50 +02:00 |
|
josdejong
|
3c7174c764
|
Renamed options to math.options.format.precision and math.options.matrix.defaultType
|
2013-10-19 15:00:32 +02:00 |
|
josdejong
|
71c36a94cf
|
Statistics functions max and min now return the max and min of the flattened array in case of multidimensional arrays.
|
2013-10-18 10:47:43 +02:00 |
|
josdejong
|
eb9ffdeadf
|
Removed support for comparing complex numbers
|
2013-10-17 14:49:30 +02:00 |
|
josdejong
|
c3d5edf4bb
|
Implemented support for multiplying vectors with matrices
|
2013-10-14 13:14:16 +02:00 |
|
josdejong
|
35cafbfa67
|
Fixed function mean to support complex values, added more tests to min and max.
|
2013-10-14 11:40:20 +02:00 |
|
Guillermo Indalecio Fernandez
|
0bd2db9f2b
|
Fixed bugs and deployed tests
|
2013-10-13 15:49:45 +02:00 |
|
josdejong
|
cc42c7dc26
|
Re-enabled test for mod operator
|
2013-10-08 17:03:15 +02:00 |
|
josdejong
|
c031a4248e
|
Added a test with mixed matrix types
|
2013-10-08 16:30:06 +02:00 |
|
josdejong
|
5481b0a663
|
Introduced an option math.options.matrix.default which can have values matrix (default) or array. This option is used by the functions eye, ones, range, and zeros, to determine the type of matrix output.
|
2013-10-01 20:37:28 +02:00 |
|
josdejong
|
f48c07bdd8
|
Getting or setting a subset of a matrix will automatically squeezed/unsqueezed the submatrix
|
2013-09-25 21:59:35 +02:00 |
|
josdejong
|
0dfdf3b2a2
|
Removed concatenation of nested arrays
|
2013-09-25 21:17:28 +02:00 |
|
josdejong
|
93d588f861
|
Added some more tests for gcd, lcm, xgcd
|
2013-09-22 09:43:18 +02:00 |
|
josdejong
|
b683d5eecf
|
All construction functions can be used to convert the type of variables, also element-wise for all elements in an Array or Matrix
|
2013-09-02 22:38:41 +02:00 |
|