Skip to content

Two operands' conditions are joined once - #2193

Merged
Rafael-SOWNet merged 1 commit into
masterfrom
two-operands-conditions-are-joined-once
Oct 28, 2026
Merged

Rafael-SOWNet merged 1 commit into
masterfrom
two-operands-conditions-are-joined-once

Conversation

@Rafael-SOWNet

Copy link
Copy Markdown
Member

An operation on two operands that each carry a condition joined the two conditions with a plain and:

Input Was (2.6.0) Now
"(a provided b > 0) + (c provided b > 0)".ToEntity().InnerSimplified a + c provided b > 0 and b > 0 a + c provided b > 0

A second derivative of 1/sqrt(x^2 + 13) stated not x ^ 2 + 13 = 0 three times.

#2186 made Providedf.Both drop a conjunct that another conjunct forces, and Providedf's own simplification goes through it. The join of two operands now goes through it as well, in ExpandOnTwoArguments and ExpandOnTwoAndTArguments. The five new tests fail without the change. Part of #212.

🤖 Generated with Claude Code

https://claude.ai/code/session_012sonx8iAspMiwRwokT1Ura

An operation on two operands that each carry a condition joined the two with a bare and, so
(a provided b > 0) + (c provided b > 0) was a + c provided b > 0 and b > 0, and a second derivative
of 1/sqrt(x^2 + 13) stated not x ^ 2 + 13 = 0 three times.

#2186 made Providedf.Both state a conjunct once where another conjunct forces it, and
Providedf's own simplification goes through it. The join of two operands now does too, in
ExpandOnTwoArguments and ExpandOnTwoAndTArguments, so the condition comes out as Providedf would
state it.

Part of #212.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012sonx8iAspMiwRwokT1Ura
@Rafael-SOWNet Rafael-SOWNet moved this from Todo to In review in AngouriMath Oct 28, 2026
@codecov

codecov Bot commented Oct 28, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 50.00000% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 86.54%. Comparing base (3f6c444) to head (7dd9800).
⚠️ Report is 1 commits behind head on master.

Files with missing lines Patch % Lines
...uriMath/Functions/Evaluation/Evaluation.Classes.cs 50.00% 1 Missing ⚠️
Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #2193      +/-   ##
==========================================
- Coverage   86.54%   86.54%   -0.01%     
==========================================
  Files         297      297              
  Lines       66324    66324              
  Branches    19267    19267              
==========================================
- Hits        57402    57400       -2     
- Misses       4852     4855       +3     
+ Partials     4070     4069       -1     
Flag Coverage Δ
cpp 37.77% <ø> (ø)
csharp 87.10% <50.00%> (-0.01%) ⬇️
fsharp 32.97% <ø> (ø)
interactive 40.72% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
...luation/Evaluation.Omni/Evaluation.Omni.Classes.cs 89.15% <ø> (ø)
...uriMath/Functions/Evaluation/Evaluation.Classes.cs 84.87% <50.00%> (ø)

... and 5 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@Rafael-SOWNet
Rafael-SOWNet merged commit 559b81f into master Oct 28, 2026
35 checks passed
@github-project-automation github-project-automation Bot moved this from In review to Done in AngouriMath Oct 28, 2026
@Rafael-SOWNet
Rafael-SOWNet deleted the two-operands-conditions-are-joined-once branch October 29, 2026 00:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant