Skip to content

Commit

Permalink
Add the simplify utils as math.simplify.utils
Browse files Browse the repository at this point in the history
  • Loading branch information
joshhansen committed Jul 12, 2021
1 parent 2f8f088 commit 633958c
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/function/algebra/simplify.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,9 @@ export const createSimplify = /* #__PURE__ */ factory(name, dependencies, (
ParenthesisNode
})

const { isCommutative, isAssociative, flatten, unflattenr, unflattenl, createMakeNodeFunction } =
createUtil({ FunctionNode, OperatorNode, SymbolNode })
const utils = createUtil({ FunctionNode, OperatorNode, SymbolNode })
const { isCommutative, isAssociative, flatten, unflattenr, unflattenl, createMakeNodeFunction } = utils;


/**
* Simplify an expression tree.
Expand Down Expand Up @@ -740,5 +741,7 @@ export const createSimplify = /* #__PURE__ */ factory(name, dependencies, (
return true
}

simplify.utils = utils;

return simplify
})

0 comments on commit 633958c

Please sign in to comment.