Skip to content

Looping over custom simplification rules #2600

Answered by josdejong
JacobBeaudry asked this question in Q&A
Discussion options

You must be logged in to vote

Thanks for bringing this up. So the TypeScript definition SimplifyRule is missing the parameters s, repeat, assuming, and imposeContext. Also, the type definitions of the options argument of simplify is missing consoleDebug and context.

For the time being you can probably use a // @ts-ignore to work around it.

Documentation: https://github.com/josdejong/mathjs/blob/develop/src/function/algebra/simplify.js#L116-L158

Anyone able to improve the TypeScript definitions?

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@JacobBeaudry
Comment options

@josdejong
Comment options

Answer selected by JacobBeaudry
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants