Skip to content

Read a sign through a change of variable only for a real part in a limit - #2416

Merged
Rafael-SOWNet merged 1 commit into
masterfrom
feature/a-power-of-e-to-a-complex-part-in-a-limit
Nov 12, 2026
Merged

Rafael-SOWNet merged 1 commit into
masterfrom
feature/a-power-of-e-to-a-complex-part-in-a-limit

Conversation

@Rafael-SOWNet

Copy link
Copy Markdown
Member

SignThroughAChangeOfVariable, added in #2395, puts a real t for a part u and reads the outer function at u's limit. That is sound only where u is real on the side approached. On the left of 0, ln(x) is ln|x| + i pi. So e^ln(x), which is x and negative there, was read as e^t at -oo and called positive. A part that is not real on the side approached is now skipped.

Input, at 0 2.6.0 master this branch
floor(exp(ln(x))), Left unevaluated 0 (wrong: it is -1) unevaluated
floor(exp(ln(x))), BothSides unevaluated 0 (wrong: the sides differ) unevaluated
sgn(exp(ln(x))), Left unevaluated 1 (wrong: it is -1) unevaluated
floor(exp(ln(x)) + 1), Left unevaluated 1 (wrong: it is 0) unevaluated
floor(exp(ln(x))), Right unevaluated 0 0

The wrong answers came in after 2.6.0 and are declined again, as they were there. So against the last release nothing changes, and there is no BREAKING-CHANGES entry. The new test pins all five rows.

Checked on this branch:

  • Tests: UnitTests 19310 passed, plus the MCP, Terminal, InteractiveWrapper and F# wrapper suites, and the AOT smoke test.
  • Harnesses: BoundCheck, RootCheck, CasBench, PropCheck, SimpSweep, RuleCheck, CanonCheck and Confluence all pass.
  • limitcheck at DEPTH=3, COUNT=600, on 42 seeds against master: no differences, so no answer the change of variable gave was lost. Seeds 184 and 195 of a wider sweep found the case.

🤖 Generated with Claude Code

The change of variable puts a real t for a part u and reads the outer
function at u's limit, which is sound only where u is real on the side
approached. ln(x) on the left of 0 is ln|x| + i pi, so e^ln(x), which is
x and negative there, was read as e^t at -oo and called positive:
floor(e^ln(x)) at 0 from the left was 0 and sgn(e^ln(x)) 1. A part that
is not real there is skipped, and these are declined, as in 2.6.0.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@codecov

codecov Bot commented Nov 12, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 86.81%. Comparing base (71ef76e) to head (1582b82).

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #2416      +/-   ##
==========================================
+ Coverage   86.80%   86.81%   +0.01%     
==========================================
  Files         312      312              
  Lines       69489    69490       +1     
  Branches    20298    20298              
==========================================
+ Hits        60323    60331       +8     
+ Misses       4931     4927       -4     
+ Partials     4235     4232       -3     
Flag Coverage Δ
cpp 37.77% <ø> (ø)
csharp 87.36% <100.00%> (+0.01%) ⬆️
fsharp 32.97% <ø> (ø)
interactive 39.81% <ø> (ø)

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

Files with missing lines Coverage Δ
...ath/Functions/Continuous/Limits/Transformations.cs 88.75% <100.00%> (+0.01%) ⬆️

... and 7 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 58de4fb into master Nov 12, 2026
35 checks passed
@Rafael-SOWNet
Rafael-SOWNet deleted the feature/a-power-of-e-to-a-complex-part-in-a-limit branch November 12, 2026 04:33
@github-project-automation github-project-automation Bot moved this from Todo to Done in AngouriMath Nov 12, 2026
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