45 Commits

Author SHA1 Message Date
Eric
feb834b040 Units no longer search for the best prefix if the current prefix results in a value approximately between 0.1 and 1000.
Adjusted unit tests.
2016-11-06 06:59:12 -07:00
Eric
d2494408ef Unitless units are now converted to numeric values when predictable:false 2016-04-19 15:52:25 -06:00
jos
c558cf496e Fixed all broken unit tests 2016-02-14 21:51:37 +01:00
Robert Eisele
e6d4e40d7c Changed some tests to match new requirements 2016-02-07 14:57:02 +01:00
Eric
34f991949d Added support for complex units 2015-11-28 20:09:22 +00:00
jos
2e1d943595 Extended arithmetic functions with support for Units with BigNumber/Fraction value. (One failing unit test!) 2015-11-28 11:04:36 +01:00
Eric
2968f2b4ff Almost done with unit prefix powers 2015-08-23 21:00:52 +00:00
jos
a94f0c6c5e Merge branch 'feature-derived-units' of https://github.com/ericman314/mathjs into ericman314-feature-derived-units
Conflicts:
	examples/units.js
2015-08-05 21:04:53 +02:00
Eric
7ce39f1084 Finished upgrades to unit type. Adjusted several unit tests. 2015-08-01 18:35:46 +00: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
Ubuntu
f583855261 First attempt at derived units. Updated unit tests and examples. 2015-07-25 18:48:04 +00:00
jos
e055828205 Minor tweaks 2015-05-17 17:00:20 +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
44b2129740 Added Fraction support for abs, gcd, mod. Added a valueOf() method to Fraction 2015-05-12 13:25:05 +02:00
jos
73f2dc2601 Implemented Fraction (using library fraction.js) for add, subtract, multiply, divide. 2015-05-12 11:42:57 +02:00
jos
868b2702b5 Updated to typed-function v0.8, creating a new instance of typed-function for each instance of math.js. Better error messages and new utility functions typed.convert and typed.find. 2015-05-09 14:53:36 +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
7adf0ebc53 LaTeX tests for functions 2015-04-05 14:29:10 +02:00
jos
cdd7bb8a83 Updated to typed-function 0.6.2, fixing a couple of bugs. Conversion from BigNumber to Complex added. 2015-02-26 21:51:25 +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
19c2024524 Halfway reworking more functions (lot of stuff is broken at this point) 2015-01-17 21:09:39 +01:00
jos
da03cd5be9 Fixed #238: Unit divided by Number returning zero 2014-11-22 13:54:38 +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
josdejong
97cbb0093f Moved errors to their own namespace and folder 2014-04-11 18:02:29 +02:00
josdejong
492d7f4c4f Moved ArgumentsError from lib/type/ to lib/util/ 2014-04-06 21:25:46 +02:00
josdejong
f51f4454f5 More unit tests 2014-03-17 21:29:52 +01:00
josdejong
9338e0a4ec All arithmetic functions can now handle mixed complex numbers, big numbers, and units 2013-11-28 11:41:18 +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
ac41566de8 Wrapped all bignumber functions available in the bignumber.js library 2013-11-16 17:49:16 +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
c8a289a08c Removed unnecessary .js suffix in module require statements 2013-10-20 14:01:31 +02:00
josdejong
a4bda611df Implemented function print (splitted from function format) 2013-10-19 18:10:50 +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
2dc6ac6cdf Implemented support for booleans in all relevant functions 2013-09-02 21:36:52 +02:00
josdejong
6273ad998f Removed usage of math.eval from function unit tests 2013-08-31 10:53:14 +02:00
josdejong
7f58398053 Completed missing descriptions in tests 2013-08-19 21:07:45 +02:00
Sebastien Piquemal
a6b4ad7526 fixed tests 2013-08-14 15:43:32 +04:00
Sebastien Piquemal
aa0249d458 fixed npm install, changed src to lib 2013-08-14 15:00:12 +04:00
josdejong
d76602a2ee Changed syntax of range to range(start, end [, step]) 2013-08-09 22:33:58 +02:00
josdejong
aa471db411 Upperbound of range is now excluded 2013-08-09 22:09:46 +02:00
Sebastien Piquemal
1e7603488c refactored refactored tests/functions/arithmetic 2013-08-08 15:31:37 +04:00
josdejong
8cc9ceb980 Changed all source files into node.js modules 2013-08-05 23:05:23 +02:00
josdejong
d9f34677b4 Renamed all test files to *.test.js 2013-08-04 14:46:22 +02:00