Repository navigation
Lambdas and functions - #496
Merged
Merged
Conversation
Codecov Report
@@ Coverage Diff @@
## master #496 +/- ##
=============================
=============================
Continue to review full report at Codecov.
|
WhiteBlackGoose
marked this pull request as ready for review
August 24, 2021 09:28
Nodes Application and Lambda added as per #495. Lambda has exactly one parameter. Application has an arbitrary number of arguments applied to an expression. Nested applications are combined into one when inner simplified. Then, there's a switch over built-in functions (like `sin`, ..., `derivative`, etc.), which either get simplified into a built-in node, or are left as they are if there was not enough arguments provided. Lambda does not get simplified in any way, unless something is applied to it. In that case, the given argument substitutes the lambda's parameter. If there is a conflict between the substituted value and local parameter of another lambda, the inner lambda gets alpha-converted to one of unused variables.
Now when inner simplified, built-in functions like sin, cos, etc. get reduced to the corresponding nodes, as well as their synonyms.
WhiteBlackGoose
force-pushed
the
impl-495
branch
from
August 25, 2021 11:46
d8603be to
5069c06
Compare
This was referenced Apr 24, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
#495