semantic-math / math-rules

Manipulate math-ast ASTs based on algebraic rules
MIT License
4 stars 1 forks source link

COMBINE_UNDER_ROOT rule pattern #38

Closed aliang8 closed 7 years ago

aliang8 commented 7 years ago
export const COMBINE_UNDER_ROOT = 
defineRuleString('nthRoot(#a_0, #c) * ...', 'nthRoot(#a_0 * ..., #c)')

e.g. nthRoot(2, 2) * nthRoot(3, 2) -> nthRoot(2 * 3, 2)

This rule should be supported.

35

kevinbarabash commented 7 years ago

I'm reopening this b/c we should be able to support it the way it's described above.