Permalink
Browse files

Fixed incompatibility with v4 (index.js file)

  • Loading branch information...
josdejong committed Jun 13, 2018
1 parent 6d340e0 commit 17f07ec0983179efefdf772f3bc7bd247fc83a08
Showing with 299 additions and 296 deletions.
  1. +1 −1 gulpfile.js
  2. +1 −1 index.js
  3. +10 −47 src/index.js
  4. +40 −0 src/main.js
  5. +1 −1 test-dist/lib.test.js
  6. +1 −1 test-node/function/alegbra/decomposition/slu.test.js
  7. +1 −1 test-node/function/alegbra/sparse/cs_amd.test.js
  8. +1 −1 test-node/function/alegbra/sparse/cs_lu.test.js
  9. +1 −1 test-node/function/arithmetic/multiply.test.js
  10. +1 −1 test/constants.test.js
  11. +1 −1 test/core/config.test.js
  12. +1 −1 test/core/import.test.js
  13. +1 −1 test/core/typed.test.js
  14. +1 −1 test/deprecated.test.js
  15. +1 −1 test/expression/Help.test.js
  16. +1 −1 test/expression/Parser.test.js
  17. +1 −1 test/expression/function/compile.test.js
  18. +1 −1 test/expression/function/eval.test.js
  19. +1 −1 test/expression/function/help.test.js
  20. +1 −1 test/expression/function/parse.test.js
  21. +1 −1 test/expression/function/parser.test.js
  22. +2 −2 test/expression/node/AccessorNode.test.js
  23. +1 −1 test/expression/node/ArrayNode.test.js
  24. +1 −1 test/expression/node/AssignmentNode.test.js
  25. +1 −1 test/expression/node/BlockNode.test.js
  26. +1 −1 test/expression/node/ConditionalNode.test.js
  27. +2 −2 test/expression/node/ConstantNode.test.js
  28. +1 −1 test/expression/node/FunctionAssignmentNode.test.js
  29. +1 −1 test/expression/node/FunctionNode.test.js
  30. +1 −1 test/expression/node/IndexNode.test.js
  31. +1 −1 test/expression/node/Node.test.js
  32. +1 −1 test/expression/node/ObjectNode.test.js
  33. +1 −1 test/expression/node/OperatorNode.test.js
  34. +1 −1 test/expression/node/ParenthesisNode.test.js
  35. +1 −1 test/expression/node/RangeNode.test.js
  36. +1 −1 test/expression/node/SymbolNode.test.js
  37. +1 −1 test/expression/operators.test.js
  38. +1 −1 test/expression/parse.test.js
  39. +1 −1 test/expression/security.test.js
  40. +1 −1 test/expression/transforms.test.js
  41. +1 −1 test/function/algebra/decomposition/lup.test.js
  42. +1 −1 test/function/algebra/decomposition/qr.test.js
  43. +1 −1 test/function/algebra/decomposition/slu.test.js
  44. +1 −1 test/function/algebra/derivative.test.js
  45. +1 −1 test/function/algebra/rationalize.test.js
  46. +1 −1 test/function/algebra/simplify.test.js
  47. +1 −1 test/function/algebra/solver/lsolve.test.js
  48. +1 −1 test/function/algebra/solver/lusolve.test.js
  49. +1 −1 test/function/algebra/solver/usolve.test.js
  50. +1 −1 test/function/algebra/sparse/cs_lu.test.js
  51. +1 −1 test/function/arithmetic/abs.test.js
  52. +1 −1 test/function/arithmetic/add.test.js
  53. +1 −1 test/function/arithmetic/addScalar.test.js
  54. +1 −1 test/function/arithmetic/cbrt.test.js
  55. +1 −1 test/function/arithmetic/ceil.test.js
  56. +1 −1 test/function/arithmetic/cube.test.js
  57. +1 −1 test/function/arithmetic/divide.test.js
  58. +1 −1 test/function/arithmetic/dotDivide.test.js
  59. +1 −1 test/function/arithmetic/dotMultiply.test.js
  60. +1 −1 test/function/arithmetic/dotPow.test.js
  61. +1 −1 test/function/arithmetic/exp.test.js
  62. +1 −1 test/function/arithmetic/expm1.test.js
  63. +1 −1 test/function/arithmetic/fix.test.js
  64. +1 −1 test/function/arithmetic/floor.test.js
  65. +1 −1 test/function/arithmetic/gcd.test.js
  66. +1 −1 test/function/arithmetic/hypot.test.js
  67. +1 −1 test/function/arithmetic/lcm.test.js
  68. +1 −1 test/function/arithmetic/log.test.js
  69. +1 −1 test/function/arithmetic/log10.test.js
  70. +1 −1 test/function/arithmetic/log1p.test.js
  71. +1 −1 test/function/arithmetic/log2.test.js
  72. +1 −1 test/function/arithmetic/mod.test.js
  73. +1 −1 test/function/arithmetic/multiply.test.js
  74. +1 −1 test/function/arithmetic/norm.test.js
  75. +1 −1 test/function/arithmetic/nthRoot.test.js
  76. +1 −1 test/function/arithmetic/nthRoots.test.js
  77. +1 −1 test/function/arithmetic/pow.test.js
  78. +1 −1 test/function/arithmetic/round.test.js
  79. +1 −1 test/function/arithmetic/sign.test.js
  80. +1 −1 test/function/arithmetic/sqrt.test.js
  81. +1 −1 test/function/arithmetic/square.test.js
  82. +1 −1 test/function/arithmetic/subtract.test.js
  83. +1 −1 test/function/arithmetic/unaryMinus.test.js
  84. +1 −1 test/function/arithmetic/unaryPlus.test.js
  85. +1 −1 test/function/arithmetic/xgcd.test.js
  86. +1 −1 test/function/bitwise/bitAnd.test.js
  87. +1 −1 test/function/bitwise/bitNot.test.js
  88. +1 −1 test/function/bitwise/bitOr.test.js
  89. +1 −1 test/function/bitwise/bitXor.test.js
  90. +1 −1 test/function/bitwise/leftShift.test.js
  91. +1 −1 test/function/bitwise/rightArithShift.test.js
  92. +1 −1 test/function/bitwise/rightLogShift.test.js
  93. +1 −1 test/function/combinatorics/bellNumbers.test.js
  94. +1 −1 test/function/combinatorics/catalan.test.js
  95. +1 −1 test/function/combinatorics/composition.test.js
  96. +1 −1 test/function/combinatorics/stirlingS2.test.js
  97. +1 −1 test/function/complex/arg.test.js
  98. +1 −1 test/function/complex/conj.test.js
  99. +1 −1 test/function/complex/im.test.js
  100. +1 −1 test/function/complex/re.test.js
  101. +1 −1 test/function/geometry/distance.test.js
  102. +1 −1 test/function/geometry/intersect.test.js
  103. +1 −1 test/function/logical/and.test.js
  104. +1 −1 test/function/logical/not.test.js
  105. +1 −1 test/function/logical/or.test.js
  106. +1 −1 test/function/logical/xor.test.js
  107. +1 −1 test/function/matrix/concat.test.js
  108. +1 −1 test/function/matrix/cross.test.js
  109. +1 −1 test/function/matrix/ctranspose.test.js
  110. +1 −1 test/function/matrix/det.test.js
  111. +1 −1 test/function/matrix/diag.test.js
  112. +1 −1 test/function/matrix/dot.test.js
  113. +1 −1 test/function/matrix/expm.test.js
  114. +1 −1 test/function/matrix/filter.test.js
  115. +1 −1 test/function/matrix/flatten.test.js
  116. +1 −1 test/function/matrix/forEach.test.js
  117. +1 −1 test/function/matrix/identity.test.js
  118. +1 −1 test/function/matrix/inv.test.js
  119. +1 −1 test/function/matrix/kron.test.js
  120. +1 −1 test/function/matrix/map.test.js
  121. +1 −1 test/function/matrix/ones.test.js
  122. +1 −1 test/function/matrix/partitionSelect.test.js
  123. +1 −1 test/function/matrix/range.test.js
  124. +1 −1 test/function/matrix/reshape.test.js
  125. +1 −1 test/function/matrix/resize.test.js
  126. +1 −1 test/function/matrix/size.test.js
  127. +1 −1 test/function/matrix/sort.test.js
  128. +1 −1 test/function/matrix/sqrtm.test.js
  129. +1 −1 test/function/matrix/squeeze.test.js
  130. +1 −1 test/function/matrix/subset.test.js
  131. +1 −1 test/function/matrix/trace.test.js
  132. +1 −1 test/function/matrix/transpose.test.js
  133. +1 −1 test/function/matrix/zeros.test.js
  134. +1 −1 test/function/probability/combinations.test.js
  135. +1 −1 test/function/probability/distribution.test.js
  136. +1 −1 test/function/probability/factorial.test.js
  137. +1 −1 test/function/probability/gamma.test.js
  138. +1 −1 test/function/probability/kldivergence.test.js
  139. +1 −1 test/function/probability/multinomial.test.js
  140. +1 −1 test/function/probability/permutations.test.js
  141. +1 −1 test/function/probability/pickRandom.test.js
  142. +1 −1 test/function/probability/random.test.js
  143. +1 −1 test/function/probability/randomInt.test.js
  144. +1 −1 test/function/probability/seededrandom.test.js
  145. +1 −1 test/function/relational/compare.test.js
  146. +1 −1 test/function/relational/compareNatural.test.js
  147. +1 −1 test/function/relational/compareText.test.js
  148. +1 −1 test/function/relational/deepEqual.test.js
  149. +1 −1 test/function/relational/equal.test.js
  150. +1 −1 test/function/relational/equalText.test.js
  151. +1 −1 test/function/relational/larger.test.js
  152. +1 −1 test/function/relational/largerEq.test.js
  153. +1 −1 test/function/relational/smaller.test.js
  154. +1 −1 test/function/relational/smallerEq.test.js
  155. +1 −1 test/function/relational/unequal.test.js
  156. +1 −1 test/function/set/setCartesian.test.js
  157. +1 −1 test/function/set/setDifference.test.js
  158. +1 −1 test/function/set/setDistinct.test.js
  159. +1 −1 test/function/set/setIntersect.test.js
  160. +1 −1 test/function/set/setIsSubset.test.js
  161. +1 −1 test/function/set/setMultiplicity.test.js
  162. +1 −1 test/function/set/setPowerset.test.js
  163. +1 −1 test/function/set/setSize.test.js
  164. +1 −1 test/function/set/setSymDifference.test.js
  165. +1 −1 test/function/set/setUnion.test.js
  166. +1 −1 test/function/special/erf.test.js
  167. +1 −1 test/function/statistics/mad.test.js
  168. +1 −1 test/function/statistics/max.test.js
  169. +1 −1 test/function/statistics/mean.test.js
  170. +1 −1 test/function/statistics/median.test.js
  171. +1 −1 test/function/statistics/min.test.js
  172. +1 −1 test/function/statistics/mode.test.js
  173. +1 −1 test/function/statistics/prod.test.js
  174. +1 −1 test/function/statistics/quantileSeq.test.js
  175. +1 −1 test/function/statistics/std.test.js
  176. +1 −1 test/function/statistics/sum.test.js
  177. +1 −1 test/function/statistics/var.test.js
  178. +1 −1 test/function/string/format.test.js
  179. +1 −1 test/function/string/print.test.js
  180. +1 −1 test/function/trigonometry/acos.test.js
  181. +1 −1 test/function/trigonometry/acosh.test.js
  182. +1 −1 test/function/trigonometry/acot.test.js
  183. +1 −1 test/function/trigonometry/acoth.test.js
  184. +1 −1 test/function/trigonometry/acsc.test.js
  185. +1 −1 test/function/trigonometry/acsch.test.js
  186. +1 −1 test/function/trigonometry/asec.test.js
  187. +1 −1 test/function/trigonometry/asech.test.js
  188. +1 −1 test/function/trigonometry/asin.test.js
  189. +1 −1 test/function/trigonometry/asinh.test.js
  190. +1 −1 test/function/trigonometry/atan.test.js
  191. +1 −1 test/function/trigonometry/atan2.test.js
  192. +1 −1 test/function/trigonometry/atanh.test.js
  193. +1 −1 test/function/trigonometry/cos.test.js
  194. +1 −1 test/function/trigonometry/cosh.test.js
  195. +1 −1 test/function/trigonometry/cot.test.js
  196. +1 −1 test/function/trigonometry/coth.test.js
  197. +1 −1 test/function/trigonometry/csc.test.js
  198. +1 −1 test/function/trigonometry/csch.test.js
  199. +1 −1 test/function/trigonometry/sec.test.js
  200. +1 −1 test/function/trigonometry/sech.test.js
  201. +1 −1 test/function/trigonometry/sin.test.js
  202. +1 −1 test/function/trigonometry/sinh.test.js
  203. +1 −1 test/function/trigonometry/tan.test.js
  204. +1 −1 test/function/trigonometry/tanh.test.js
  205. +1 −1 test/function/unit/to.test.js
  206. +1 −1 test/function/utils/clone.test.js
  207. +1 −1 test/function/utils/isInteger.test.js
  208. +1 −1 test/function/utils/isNaN.test.js
  209. +1 −1 test/function/utils/isNegative.test.js
  210. +1 −1 test/function/utils/isNumeric.test.js
  211. +1 −1 test/function/utils/isPositive.test.js
  212. +1 −1 test/function/utils/isPrime.test.js
  213. +1 −1 test/function/utils/isZero.test.js
  214. +1 −1 test/function/utils/typeof.test.js
  215. +1 −1 test/index.test.js
  216. +1 −1 test/json/replacer.test.js
  217. +1 −1 test/json/reviver.test.js
  218. +1 −1 test/type/bignumber/BigNumber.test.js
  219. +1 −1 test/type/bignumber/function/bignumber.test.js
  220. +1 −1 test/type/boolean.test.js
  221. +1 −1 test/type/chain/Chain.test.js
  222. +1 −1 test/type/chain/function/chain.test.js
  223. +1 −1 test/type/complex/Complex.test.js
  224. +1 −1 test/type/complex/function/complex.test.js
  225. +1 −1 test/type/fraction/Fraction.test.js
  226. +1 −1 test/type/fraction/function/fraction.test.js
  227. +1 −1 test/type/matrix/DenseMatrix.test.js
  228. +1 −1 test/type/matrix/FibonacciHeap.test.js
  229. +1 −1 test/type/matrix/ImmutableDenseMatrix.test.js
  230. +1 −1 test/type/matrix/Index.test.js
  231. +1 −1 test/type/matrix/Matrix.test.js
  232. +1 −1 test/type/matrix/Range.test.js
  233. +1 −1 test/type/matrix/Spa.test.js
  234. +1 −1 test/type/matrix/SparseMatrix.test.js
  235. +1 −1 test/type/matrix/collection.test.js
  236. +1 −1 test/type/matrix/function/index.test.js
  237. +1 −1 test/type/matrix/function/matrix.test.js
  238. +1 −1 test/type/matrix/function/sparse.test.js
  239. +1 −1 test/type/number.test.js
  240. +1 −1 test/type/resultset/ResultSet.test.js
  241. +1 −1 test/type/string.test.js
  242. +1 −1 test/type/unit/Unit.test.js
  243. +1 −1 test/type/unit/function/createUnit.test.js
  244. +1 −1 test/type/unit/function/splitUnit.test.js
  245. +1 −1 test/type/unit/function/unit.test.js
  246. +1 −1 test/type/unit/physicalConstants.test.js
  247. +1 −1 test/utils/customs.test.js
  248. +1 −1 test/utils/string.test.js
  249. +1 −1 tools/matrixmarket.js
@@ -7,7 +7,7 @@ const babel = require('gulp-babel')
const uglify = require('uglify-js')
const docgenerator = require('./tools/docgenerator')
const ENTRY = './src/index.js'
const ENTRY = './src/main.js'
const HEADER = './src/header.js'
const VERSION = './src/version.js'
const COMPILE_SRC = './src/**/*.js'
@@ -1 +1 @@
module.exports = require('./lib/index')
module.exports = require('./lib/main')
@@ -1,47 +1,10 @@
'use strict'
import core from './core/core'
/**
* math.js factory function. Creates a new instance of math.js
*
* @param {Object} [config] Available configuration options:
* {number} epsilon
* Minimum relative difference between two
* compared values, used by all comparison functions.
* {string} matrix
* A string 'matrix' (default) or 'array'.
* {string} number
* A string 'number' (default), 'bignumber', or
* 'fraction'
* {number} precision
* The number of significant digits for BigNumbers.
* Not applicable for Numbers.
* {boolean} predictable
* Predictable output type of functions. When true,
* output type depends only on the input types. When
* false (default), output type can vary depending
* on input values. For example `math.sqrt(-4)`
* returns `complex('2i')` when predictable is false, and
* returns `NaN` when true.
*/
function create (config) {
// create a new math.js instance
const math = core.create(config)
math.create = create
// import data types, functions, constants, expression parser, etc.
math['import']([
require('./type'), // data types (Matrix, Complex, Unit, ...)
require('./constants'), // constants
require('./expression'), // expression parsing
require('./function'), // functions
require('./json'), // serialization utility (math.json.reviver)
require('./error') // errors
])
return math
}
// return a new instance of math.js
module.exports = create()
// This file contains all factory functions of math.js
module.exports = [
require('./type'), // data types (Matrix, Complex, Unit, ...)
require('./constants'), // constants
require('./expression'), // expression parsing
require('./function'), // functions
require('./json'), // serialization utility (math.json.reviver)
require('./error') // errors
]
@@ -0,0 +1,40 @@
'use strict'
import core from './core/core'
/**
* math.js factory function. Creates a new instance of math.js
*
* @param {Object} [config] Available configuration options:
* {number} epsilon
* Minimum relative difference between two
* compared values, used by all comparison functions.
* {string} matrix
* A string 'matrix' (default) or 'array'.
* {string} number
* A string 'number' (default), 'bignumber', or
* 'fraction'
* {number} precision
* The number of significant digits for BigNumbers.
* Not applicable for Numbers.
* {boolean} predictable
* Predictable output type of functions. When true,
* output type depends only on the input types. When
* false (default), output type can vary depending
* on input values. For example `math.sqrt(-4)`
* returns `complex('2i')` when predictable is false, and
* returns `NaN` when true.
*/
function create (config) {
// create a new math.js instance
const math = core.create(config)
math.create = create
// import data types, functions, constants, expression parser, etc.
math['import'](require('./index'))
return math
}
// return a new instance of math.js
module.exports = create()
@@ -3,7 +3,7 @@ const version = require('../package.json').version
describe('lib', function () {
it('should load lib/index.js', function () {
const math = require('../lib/index.js')
const math = require('../lib/main')
assert.equal(math.add(2, 3), 5)
assert.equal(math.version, version)
@@ -1,4 +1,4 @@
const approx = require('../../../../tools/approx'), math = require('../../../../src/index'), market = require('../../../../tools/matrixmarket')
const approx = require('../../../../tools/approx'), math = require('../../../../src/main'), market = require('../../../../tools/matrixmarket')
describe('slu - matrix market', function () {
it('should decompose matrix, 48 x 48, natural ordering (order=0), full pivoting, matrix market', function (done) {
@@ -1,7 +1,7 @@
const assert = require('assert')
const approx = require('../../../../tools/approx')
const market = require('../../../../tools/matrixmarket')
const math = require('../../../../src/index').create()
const math = require('../../../../src/main').create()
math.import(require('../../../../src/function/algebra/sparse/cs_amd'))
const cs_amd = math.sparse.cs_amd
@@ -1,7 +1,7 @@
const assert = require('assert')
const approx = require('../../../../tools/approx')
const market = require('../../../../tools/matrixmarket')
const math = require('../../../../src/index').create()
const math = require('../../../../src/main').create()
math.import(require('../../../../src/function/algebra/sparse/cs_permute'))
math.import(require('../../../../src/function/algebra/sparse/cs_lu'))
@@ -1,5 +1,5 @@
// test multiply
const math = require('../../../src/index')
const math = require('../../../src/main')
const market = require('../../../tools/matrixmarket')
describe('multiply', function () {
@@ -1,4 +1,4 @@
const assert = require('assert'), math = require('../src/index'), approx = require('../tools/approx')
const assert = require('assert'), math = require('../src/main'), approx = require('../tools/approx')
describe('constants', function () {
describe('number', function () {
@@ -1,5 +1,5 @@
const assert = require('assert')
const math = require('../../src/index')
const math = require('../../src/main')
describe('config', function () {
// TODO: test function config
@@ -1,6 +1,6 @@
// test import
const assert = require('assert')
const mathjs = require('../../src/index')
const mathjs = require('../../src/main')
const approx = require('../../tools/approx')
describe('import', function () {
@@ -1,5 +1,5 @@
const assert = require('assert')
const math = require('../../src/index')
const math = require('../../src/main')
const math2 = math.create()
describe('typed', function () {
@@ -1,6 +1,6 @@
// test error messages for deprecated functions
const assert = require('assert')
const math = require('../src/index')
const math = require('../src/main')
describe('deprecated stuff', function () {
it('should throw a deprecation error when using UpdateNode', function () {
@@ -1,6 +1,6 @@
// test Help
const assert = require('assert')
const math = require('../../src/index')
const math = require('../../src/main')
const Help = math.type.Help
describe('help', function () {
@@ -1,6 +1,6 @@
// test parser
const assert = require('assert'), approx = require('../../tools/approx'), math = require('../../src/index'), Parser = math.expression.Parser
const assert = require('assert'), approx = require('../../tools/approx'), math = require('../../src/main'), Parser = math.expression.Parser
describe('parser', function () {
it('should create a parser', function () {
@@ -1,6 +1,6 @@
// test compile
const assert = require('assert')
const math = require('../../../src/index')
const math = require('../../../src/main')
describe('compile', function () {
it('should compile an expression', function () {
@@ -1,7 +1,7 @@
// test eval
const assert = require('assert')
const approx = require('../../../tools/approx')
const math = require('../../../src/index')
const math = require('../../../src/main')
const Complex = math.type.Complex
const Matrix = math.type.Matrix
const Unit = math.type.Unit
@@ -1,4 +1,4 @@
const assert = require('assert'), error = require('../../../src/error/index'), math = require('../../../src/index')
const assert = require('assert'), error = require('../../../src/error/index'), math = require('../../../src/main')
describe('help', function () {
it('should find documentation for a function by its name', function () {
@@ -1,7 +1,7 @@
// test parse
const assert = require('assert')
const error = require('../../../src/error/index')
const math = require('../../../src/index')
const math = require('../../../src/main')
const Node = math.expression.node.Node
describe('parse', function () {
@@ -1,5 +1,5 @@
const assert = require('assert')
const math = require('../../../src/index')
const math = require('../../../src/main')
const Parser = math.expression.Parser
describe('parser', function () {
@@ -1,8 +1,8 @@
// test AccessorNode
const assert = require('assert')
const approx = require('../../../tools/approx')
const math = require('../../../src/index')
const bigmath = require('../../../src/index').create({number: 'BigNumber'})
const math = require('../../../src/main')
const bigmath = require('../../../src/main').create({number: 'BigNumber'})
const Node = math.expression.node.Node
const ConstantNode = math.expression.node.ConstantNode
const OperatorNode = math.expression.node.OperatorNode
@@ -1,7 +1,7 @@
// test ArrayNode
const assert = require('assert')
const approx = require('../../../tools/approx')
const math = require('../../../src/index')
const math = require('../../../src/main')
const Node = math.expression.node.Node
const ConstantNode = math.expression.node.ConstantNode
const SymbolNode = math.expression.node.SymbolNode
@@ -1,7 +1,7 @@
// test AssignmentNode
const assert = require('assert')
const approx = require('../../../tools/approx')
const math = require('../../../src/index')
const math = require('../../../src/main')
const Node = math.expression.node.Node
const AccessorNode = math.expression.node.AccessorNode
const ConstantNode = math.expression.node.ConstantNode
@@ -1,7 +1,7 @@
// test BlockNode
const assert = require('assert')
const approx = require('../../../tools/approx')
const math = require('../../../src/index')
const math = require('../../../src/main')
const Node = math.expression.node.Node
const ConstantNode = math.expression.node.ConstantNode
const SymbolNode = math.expression.node.SymbolNode
@@ -1,7 +1,7 @@
// test ConditionalNode
const assert = require('assert')
const approx = require('../../../tools/approx')
const math = require('../../../src/index')
const math = require('../../../src/main')
const Node = math.expression.node.Node
const ConstantNode = math.expression.node.ConstantNode
const SymbolNode = math.expression.node.SymbolNode
@@ -1,8 +1,8 @@
// test ConstantNode
const assert = require('assert')
const approx = require('../../../tools/approx')
const math = require('../../../src/index')
const bigmath = require('../../../src/index').create({number: 'BigNumber'})
const math = require('../../../src/main')
const bigmath = require('../../../src/main').create({number: 'BigNumber'})
const Node = math.expression.node.Node
const ConstantNode = math.expression.node.ConstantNode
const SymbolNode = math.expression.node.SymbolNode
@@ -1,7 +1,7 @@
// test FunctionAssignmentNode
const assert = require('assert')
const approx = require('../../../tools/approx')
const math = require('../../../src/index').create()
const math = require('../../../src/main').create()
const Node = math.expression.node.Node
const ConstantNode = math.expression.node.ConstantNode
const SymbolNode = math.expression.node.SymbolNode
@@ -1,7 +1,7 @@
// test FunctionNode
const assert = require('assert')
const approx = require('../../../tools/approx')
const math = require('../../../src/index').create()
const math = require('../../../src/main').create()
const Node = math.expression.node.Node
const ConstantNode = math.expression.node.ConstantNode
const SymbolNode = math.expression.node.SymbolNode
@@ -1,7 +1,7 @@
// test IndexNode
const assert = require('assert')
const approx = require('../../../tools/approx')
const math = require('../../../src/index')
const math = require('../../../src/main')
const Node = math.expression.node.Node
const ConstantNode = math.expression.node.ConstantNode
const SymbolNode = math.expression.node.SymbolNode
@@ -1,7 +1,7 @@
// test Node
const assert = require('assert')
const approx = require('../../../tools/approx')
const math = require('../../../src/index')
const math = require('../../../src/main')
const Node = math.expression.node.Node
describe('Node', function () {
@@ -1,7 +1,7 @@
// test ObjectNode
const assert = require('assert')
const approx = require('../../../tools/approx')
const math = require('../../../src/index')
const math = require('../../../src/main')
const Node = math.expression.node.Node
const ConstantNode = math.expression.node.ConstantNode
const SymbolNode = math.expression.node.SymbolNode
@@ -1,7 +1,7 @@
// test OperatorNode
const assert = require('assert')
const approx = require('../../../tools/approx')
const math = require('../../../src/index')
const math = require('../../../src/main')
const Node = math.expression.node.Node
const ConstantNode = math.expression.node.ConstantNode
const SymbolNode = math.expression.node.SymbolNode
@@ -1,7 +1,7 @@
// test SymbolNode
const assert = require('assert')
const approx = require('../../../tools/approx')
const math = require('../../../src/index')
const math = require('../../../src/main')
const Node = math.expression.node.Node
const ConstantNode = math.expression.node.ConstantNode
const OperatorNode = math.expression.node.OperatorNode
@@ -1,7 +1,7 @@
// test RangeNode
const assert = require('assert')
const approx = require('../../../tools/approx')
const math = require('../../../src/index')
const math = require('../../../src/main')
const Node = math.expression.node.Node
const ConstantNode = math.expression.node.ConstantNode
const SymbolNode = math.expression.node.SymbolNode
@@ -1,7 +1,7 @@
// test SymbolNode
const assert = require('assert')
const approx = require('../../../tools/approx')
const math = require('../../../src/index')
const math = require('../../../src/main')
const Node = math.expression.node.Node
const ConstantNode = math.expression.node.ConstantNode
const SymbolNode = math.expression.node.SymbolNode
@@ -1,6 +1,6 @@
const assert = require('assert')
const math = require('../../src/index')
const math = require('../../src/main')
const operators = require('../../src/expression/operators')
const OperatorNode = math.expression.node.OperatorNode
const AssignmentNode = math.expression.node.AssignmentNode
@@ -1,7 +1,7 @@
// test parse
const assert = require('assert')
const approx = require('../../tools/approx')
const math = require('../../src/index')
const math = require('../../src/main')
const ArgumentsError = require('../../src/error/ArgumentsError')
const parse = math.expression.parse
const ConditionalNode = math.expression.node.ConditionalNode
Oops, something went wrong.

0 comments on commit 17f07ec

Please sign in to comment.