* Not applicable for Numbers.
*/
math.create = create;
// create a new BigNumber factory for this instance of math.js
var BigNumber = __webpack_require__(159).constructor();
// extend BigNumber with a function clone
if (typeof BigNumber.prototype.clone !== 'function') {
/**
* Clone a bignumber
*
@return {BigNumber} clone
*/
BigNumber.prototype.clone = function() {
return this; // just return itself (a BigNumber is immutable)
};
}
// extend BigNumber with a function convert
if (typeof BigNumber.convert !== 'function') {
/**
* Try to convert a Number in to a BigNumber.
* If the number has 15 or mor significant digits, the Number cannot be
* converted to BigNumber and will return the original number.
*
@param {Number} number
* @return {BigNumber | Number} bignumber
*/
BigNumber.convert = function(number) {
if (digits(number) > 15) {
return number;
}
else {
return new BigNumber(number);
}
};
}
else {
throw new Error('Cannot add function convert to BigNumber: function already exists');
}
// errors
math.error = __webpack_require__(5);
// types (Matrix, Complex, Unit, ...)
math.type = {};
math.type.Complex = __webpack_require__(6);
math.type.Range = __webpack_require__(7);
math.type.Index = __webpack_require__(8);
math.type.Matrix = __webpack_require__(9);
math.type.Unit = __webpack_require__(10);
math.type.Help = __webpack_require__(11);
math.type.ResultSet = __webpack_require__(12);
math.type.BigNumber = BigNumber;
math.collection = __webpack_require__(13);
// expression (parse, Parser, nodes, docs)
math.expression = {};
math.expression.node = __webpack_require__(16);
math.expression.parse = __webpack_require__(14);
math.expression.Parser = __webpack_require__(15);
math.expression.docs = __webpack_require__(17);
// expression parser
__webpack_require__(29)(math, _config);
__webpack_require__(30)(math, _config);
__webpack_require__(31)(math, _config);
__webpack_require__(32)(math, _config);
// functions - arithmetic
__webpack_require__(33)(math, _config);
__webpack_require__(34)(math, _config);
__webpack_require__(35)(math, _config);
__webpack_require__(36)(math, _config);
__webpack_require__(37)(math, _config);
__webpack_require__(38)(math, _config);
__webpack_require__(39)(math, _config);
__webpack_require__(40)(math, _config);
__webpack_require__(41)(math, _config);
__webpack_require__(42)(math, _config);
__webpack_require__(43)(math, _config);
__webpack_require__(44)(math, _config);
__webpack_require__(45)(math, _config);
__webpack_require__(46)(math, _config);
__webpack_require__(47)(math, _config);
__webpack_require__(48)(math, _config);
__webpack_require__(49)(math, _config);
__webpack_require__(50)(math, _config);
__webpack_require__(51)(math, _config);
__webpack_require__(52)(math, _config);
__webpack_require__(53)(math, _config);
__webpack_require__(54)(math, _config);
__webpack_require__(55)(math, _config);
__webpack_require__(56)(math, _config);
__webpack_require__(57)(math, _config);
__webpack_require__(58)(math, _config);
__webpack_require__(59)(math, _config);
__webpack_require__(60)(math, _config);
__webpack_require__(61)(math, _config);