8000 Convert analyzer to scmutils interface by sritchie · Pull Request #357 · sicmutils/sicmutils · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
This repository was archived by the owner on Jun 18, 2025. It is now read-only.

Convert analyzer to scmutils interface #357

Merged
merged 5 commits into from
May 3, 2021
Merged

Conversation

sritchie
Copy link
Member
@sritchie sritchie commented May 1, 2021

The new analyzer namespace allows for more interactive exploration and simplification of expressions with our polynomial and rational function simplifiers. This PR also brings us fully into line with the scmutils simplification system.

From the CHANGELOG:

  • Adds the ability to do incremental simplification, every time an operation
    is performed involving a symbolic expression. Bind
    sicmutils.numsymb/*incremental-simplifier* to a function from raw
    expression -> raw expression, like sicmutils.simplify/simplify-expression
    or any of the rules in sicmutils.simplify.rules to enable this behavior.

  • Expands the sicmutils.expression.analyze API with the functions
    default-simplifier, expression-simplifier, initializer,
    expression-analyzer and auxiliary-variable-fetcher. See the API
    documentation

    for detailed notes on how to do interactive expression analysis and
    simplification with these new tools.

  • by default, each simplification pass uses both rational function and
    polynomial canonicalization. This brings the simplifier into line with the
    scmutils simplifier.

@codecov-commenter
Copy link
codecov-commenter commented May 1, 2021

Codecov Report

Merging #357 (280d692) into master (9d1a77c) will increase coverage by 0.02%.
The diff coverage is 92.20%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #357      +/-   ##
==========================================
+ Coverage   83.80%   83.83%   +0.02%     
==========================================
  Files          95       95              
  Lines       12052    12111      +59     
  Branches      620      625       +5     
==========================================
+ Hits        10100    10153      +53     
- Misses       1332     1333       +1     
- Partials      620      625       +5     
Impacted Files Coverage Δ
src/sicmutils/expression/compile.cljc 84.04% <0.00%> (ø)
src/sicmutils/numerical/ode.cljc 93.25% <ø> (ø)
src/sicmutils/numerical/quadrature/common.cljc 85.71% <ø> (ø)
src/sicmutils/value.cljc 82.44% <ø> (ø)
src/sicmutils/util.cljc 87.71% <40.00%> (ø)
src/sicmutils/abstract/number.cljc 83.65% <45.45%> (-1.92%) ⬇️
src/sicmutils/expression/analyze.cljc 98.03% <97.80%> (-1.97%) ⬇️
src/sicmutils/calculus/indexed.cljc 78.19% <100.00%> (ø)
src/sicmutils/complex.cljc 98.43% <100.00%> (+0.03%) ⬆️
src/sicmutils/numsymb.cljc 90.14% <100.00%> (ø)
... and 3 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 9d1a77c...280d692. Read the comment docs.

@sritchie sritchie merged commit 36a02f6 into master May 3, 2021
@sritchie sritchie deleted the sritchie/new_analyzer branch May 3, 2021 13:09
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0