74 Commits

Author SHA1 Message Date
Harry Sarson
af417d8384
add use strict to the top of a bunch of files 2018-04-27 21:28:28 +01:00
jos
0b9f22e9d8 Refactoring in handling DenseMatrix/SparseMatrix cases in most functions 2018-02-21 10:51:21 +01:00
jos
bf3f62b564 Upgraded to typed-function@1.0.0 2018-02-20 20:59:05 +01:00
jos
4469f6bd0c Remove support for implicit conversion of null to 0. See #830. 2018-01-23 20:26:38 +01:00
jos
967e65cceb Refactored usage of properties .isNode, .isSymbolNode, etc. into using functions like type.isNode(x) for security 2017-08-12 14:38:03 +02:00
jos
fa01e993af Refactored x && x.isMatrix === true into type.isMatrix(x), same with isDenseMatrix and isSparseMatrix 2017-08-12 13:24:39 +02:00
jos
e10dd5bce5 Refactored x && x.isBigNumber === true into type.isBigNumber(x) 2017-08-12 11:54:53 +02:00
jos
26e70a4acd Refactored x.isComplex === true into type.isComplex(x) 2017-08-12 11:32:40 +02:00
jos
3e9f0d24f8 Implemented more strict type checks in typed-functions 2017-08-04 11:15:46 +02:00
jos
ed5f2cebaf Security fixes in isSafeMethod and some others 2017-05-27 19:51:12 +02:00
jos
627bb2a79d Disabled function chain 2017-05-26 17:11:52 +02:00
jos
959b010242 Simplified isSafeMethod 2017-05-26 16:43:03 +02:00
Timothy Lee
6f2b5efaac Disallow implicitly converting a number to a fraction that is not an exact representation 2017-05-08 15:58:06 +09:30
Timothy Lee
82095ebc19 Revert "Changed multiply to only output Fractions when both arguments can be exactly represented as Fractions"
This reverts commit f3cb41864582b2dc8b07c07d4c22d6c313bcc114.
2017-05-08 15:57:19 +09:30
Timothy Lee
f3cb418645 Changed multiply to only output Fractions when both arguments can be exactly represented as Fractions 2017-05-05 16:30:37 +09:30
jos
8e8e02bec9 Don't clone config itself, only it's childs 2017-04-22 20:14:52 +02:00
jos
c2c1888012 Fixed security vulnerabilities in math.subset 2017-04-22 13:58:26 +02:00
jos
ee6efa3768 Only allow accessing/assigning properties on plain objects. Only allow calling known methods. 2017-04-08 15:32:10 +02:00
jos
0e2f3ebd78 Fixed #807: function transform of existing functions not being removed when overriding such a function 2017-03-19 10:34:51 +01:00
morsecodist
ffc5c376c1 Refactored options to changes and made seededRNG private 2017-02-26 22:34:55 -05:00
morsecodist
c1d59f8388 Updated docs and code comments 2017-02-24 15:35:42 -05:00
morsecodist
0502921d7e Implemented seeded random number generation as config option 2017-02-24 15:20:57 -05:00
morsecodist
c0d290c773 Passed original options to emit 2017-02-24 15:20:22 -05:00
jos
41f4cd6078 Fixed #789: Math.js not supporting conversion of string to BigNumber, Fraction, or Complex number 2017-02-03 17:52:38 +01:00
Harry Sarson
d559aa5062 fixed doc error for config option predictable 2017-01-24 18:43:07 +00:00
jos
f491873452 Merge branch 'develop' into algebraic_differentiation 2016-11-07 20:57:27 +01:00
jos
c9591339b1 Throw an error for implicit conversion between BigNumber and Fraction (see #710) 2016-11-05 19:44:04 +01:00
tetslee
23bf1031eb Improved constant folding in simplify. 2016-11-04 18:02:42 +10:30
tetslee
12cdee2956 Merge branch 'algebraic_differentiation' into derivative 2016-10-25 13:06:37 +10:30
jos
0cd4352856 Added automatic conversions from boolean and null to Fraction and conversions from Fraction to Complex 2016-03-14 21:24:29 +01:00
jos
773e070881 Fixed docs of config 2016-03-04 19:44:18 +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
6a94e1a0de Improved function reference page (see #556):
- changed headers to "Category functions"
 - show function name with namespace, like `math.sin`
 - functions are now shown in a table with description
2016-03-03 20:08:57 +01:00
jos
4ea2542941 Extended math.fraction with support for BigNumber, extended math.bignumber with support for Fraction 2016-03-03 19:24:24 +01:00
jos
8db2867f4b Changed the default config value for epsilon from 1e-14 to 1e-12, see #561 2016-02-28 14:07:06 +01:00
jos
0922121e82 Added core functions config, import, and typed to the docs. Updated other docs 2016-02-27 20:37:26 +01:00
jos
ddf212eda3 Added support for doing operations with mixed Fractions and BigNumbers 2016-01-25 21:09:41 +01:00
Brett Jurgens
9bb678052b import BigNumber, Fraction, Matrix, and Array 2016-01-25 00:42:21 -05:00
jos
bc6c861a36 Merge branch 'develop' into algebraic_differentiation 2015-12-05 13:17:50 +01:00
jos
d2268c31f9 Fixed: function import did not override typed functions when the option override was set true 2015-10-28 20:53:23 +01:00
jos
a39d726a18 Merged algebraic_differentiation, fixed issues with function transforms attached to factory functions 2015-07-29 21:24:34 +02:00
jos
a388f399ca Merge branch 'algebraic_differentiation' of https://github.com/BigFav/mathjs into algebraic_differentiation
Conflicts:
	lib/core/typed.js
2015-07-29 20:57:50 +02: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
3f77f7138a Upgraded to typed-function v0.10.0 2015-07-26 19:48:18 +02:00
jos
ae24d7ca81 Documented typed-functions and factory functions, and added an example 2015-07-26 15:15:12 +02:00
jos
a3a09927a9 Reimplemented support for transform property on an imported function 2015-07-22 21:23:23 +02:00
jos
188f43a26a Lazy loading works ... hurray!!! 2015-07-22 21:13:15 +02:00
jos
ec2da034a2 Halfway implementing lazy loading 2015-07-22 20:37:34 +02:00
jos
396d951c95 Halfway implementing lazy loading 2015-07-21 20:49:52 +02:00
jos
2353c4a61e Renamed folders util to utils 2015-07-18 13:22:38 +02:00