21 Commits

Author SHA1 Message Date
jos
9e0cc3fb61 Refactored x && x.isUnit === true into type.isUnit(x) 2017-08-12 12:07:03 +02:00
Vincent Lee
57b8199ef9 Update Complex.js 2017-07-28 08:48:29 +08:00
Vincent Lee
77768a195a Fixed the regex for imaginary number
I think you are trying to match the '-' symbol in the imaginary number of complex number, but using /[\b-.]/ as regex instead of /[-]/, right?
2017-07-27 00:06:24 +08:00
Gulfaraz Yasin
f42f7feffc static implementation of complex comparision 2017-06-05 11:58:27 +05:30
Gulfaraz Yasin
eda65d2228 used different approach for comparing complex numbers - resolves #837 2017-06-04 22:29:55 +05:30
Jos de Jong
692519e330 Fixed wrong formatting of complex NaN (see 804) 2017-04-24 08:39:36 +02:00
jos
6e1521d2a4 Use EPSILON of math.js and update on changes in config of math.js 2016-02-09 09:27:45 +01:00
Robert Eisele
b916f838ff Restored original Complex valueOf 2016-02-06 02:04:05 +01:00
Robert Eisele
f6fc7a4eb4 Re-added original Complex format() and fromPolar() 2016-02-06 02:01:37 +01:00
Robert Eisele
fcfd43a218 Added complex.js 2016-01-29 01:56:06 +01:00
Eric
a14b8b7a68 Added VA, VAR, and custom logic to convert between them. 2015-12-24 05:45:13 +00:00
jos
526c1ddfc8 Fixed #503: Removed trailing commas and the use of keyword import as
property, as this gives issues with old JavaScript engines
2015-11-13 21:10:00 +01:00
jos
189d8e4918 Internal functions Unit.parse and Complex.parse now throw an Error instead of returning null when passing invalid input 2015-08-10 21:45:48 +02:00
jos
2353c4a61e Renamed folders util to utils 2015-07-18 13:22:38 +02:00
jos
57a47b3b5a Moved pure collection functions to lib/util/collection 2015-07-18 12:53:07 +02:00
jos
493f34ec7b Split collection.js into separate (pure) functions 2015-07-18 11:47:38 +02:00
Max Bruckner
5f8b2559c3 Remove LaTeX of construction functions from util/latex.js 2015-06-14 20:08:19 +02:00
jos
052b6cf4ed Some minor restructuring in the docs. Moved command line debugging to the page command line interface. 2015-06-12 19:40:41 +02:00
jos
6c7bf4acf0 Removed boolean, string, and null from the list with argument types, only leaving the directly supported types (which types can be converted to supported types is determined externally). Consistently renamed primitive types lower case (boolean, string, number, null) and non-primitive types uppercase (Complex, BigNumber, Function, Array, ...). 2015-05-20 21:08:26 +02:00
jos
3242cd8550 Attached properties like.type === 'Complex' and .isComple to all data types 2015-05-05 14:35:45 +02:00
jos
7e3eda8603 Moved all data types and their construction functions into a folder of their own under ./lib/type 2015-05-05 13:51:24 +02:00