Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Add leafCount function #2411

Merged
merged 1 commit into from
Feb 16, 2022
Merged

Conversation

gwhitney
Copy link
Collaborator

@gwhitney gwhitney commented Feb 7, 2022

This function returns the number of leaves in the parse tree of an
expression. The motivation is to provide an initial complexity measure
that could be used to decide whether or not to apply some simplification
rules. Docs, embedded docs, and test cases are provided.

Resolves #2389.

  This function returns the number of leaves in the parse tree of an
  expression. The motivation is to provide an initial complexity measure
  that could be used to decide whether or not to apply some simplification
  rules. Docs, embedded docs, and test cases are provided.

  Resolves josdejong#2389.
@josdejong
Copy link
Owner

Thanks Glen, this looks good 👍

@josdejong josdejong merged commit 790a594 into josdejong:develop Feb 16, 2022
@josdejong
Copy link
Owner

Published in v10.2.0. Thanks again Glen.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

feat: add complexity measure on expressions
2 participants