A difference of two intervals has the wrong ends, and loses a piece when the second lies inside the first
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 72/100
Direzione di ricerca
Start with Sources/AngouriMath/Core/Entity/Omni/Sets/SetOperators.SetSubtraction.cs, especially SetSubtractIntervalAndInterval, whose final returns the issue identifies. Find the existing tests for interval subtraction and add coverage for the listed endpoint and containment cases. Done means the results preserve the correct interval pieces and endpoints, and membership agrees with those results.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
A difference of two intervals, on master (87a0eff), Simplify():
| Answered | Should be | |
|---|---|---|
[0; 10] \ (2; 3) |
[0; 3] |
[0; 2] \/ [3; 10] |
[0; 10] \ [2; 3] |
(0; 3] |
[0; 2) \/ (3; 10] |
(0; 10) \ (2; 3) |
[0; 3) |
(0; 2] \/ [3; 10) |
[0; 10] \ [-1; 3) |
(3; 10] |
[3; 10] |
[0; 10] \ (-1; 3] |
[3; 10] |
(3; 10] |
[0; 10] \ (5; 12] |
[0; 5) |
[0; 5] |
[0; 10] \ [5; 12) |
[0; 5] |
[0; 5) |
[0; 10] \ (0; 3) |
[3; 10] |
{ 0 } \/ [3; 10] |
[0; 10] \ (7; 10) |
[0; 7] |
[0; 7] \/ { 10 } |
Evaled gives the same sets, and membership follows them: 5 in ([0; 10] \ (2; 3)) simplifies to False. A finite set on the right, [0; 10] \ { 5 }, is left as it is, which is right.
The cause is the last three returns of SetOperators.SetSubtractIntervalAndInterval:
- When B lies strictly inside A, the fallback builds one interval from A's left end to B's right end, where the answer is the two pieces on either side of B.
- When B covers one end of A, the end of the cut is read from B's other end (
!B.LeftClosedatbRight,!B.RightClosedatbLeft), so it comes out right only when B is closed at both ends or open at both. - When A and B share an end that A contains and B does not, that point is folded into the flag of the cut instead of being kept as
{ a }.
Found while building a number-line view of \ for browser demos of the library.
- Lingua principale
- C#
- Stelle
- 831
- Fork
- 79
- Merge medio
- 1h 10m
- PR unite (30g)
- 531
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Nessun modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di ASC-Community/AngouriMath
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
ASC-Community/AngouriMath#2220 · 4 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 25/100
ASC-Community/AngouriMath#2293 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 35/100
ASC-Community/AngouriMath#2292 ·
I maintainer di solito rispondono entro 1 giorno
-
A Taylor expansion differentiates without simplifying, so sin(x)/x to 11 terms runs out of memoryAperta
Difficoltà 4/5 3-5 giorni Idoneità per principianti 55/100
ASC-Community/AngouriMath#2291 ·
I maintainer di solito rispondono entro 1 giorno
-
Compiled, a scalar over a matrix argument divides by each entry, where evaluation invertsForse già presa @Rafael-SOWNet l’ha presa oggi. Aperta
Difficoltà 4/5 3-5 giorni Idoneità per principianti 48/100
ASC-Community/AngouriMath#2287 ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di ASC-Community/AngouriMath
Issue simili
-
bug effort:S P3
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
nightscout/nocturne#3136 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 67/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 76/100
GameShowLDA/AskMkiM#1075 ·
I maintainer di solito rispondono entro 1 giorno
-
is:fix
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
nunit/nunit#5537 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno