A difference of two intervals has the wrong ends, and loses a piece when the second lies inside the first
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Aptitud para principiantes
- 72/100
Línea de trabajo
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.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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.
- Lenguaje dominante
- C#
- Estrellas
- 831
- Forks
- 79
- Merge medio
- 1 h 10 min
- PR fusionados (30 d)
- 531
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Sin plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de ASC-Community/AngouriMath
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
ASC-Community/AngouriMath#2220 · 4 comentarios ·
Los mantenedores suelen responder en 1 día
-
Dificultad 5/5 Más de una semana Aptitud para principiantes 25/100
ASC-Community/AngouriMath#2293 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 5/5 Más de una semana Aptitud para principiantes 35/100
ASC-Community/AngouriMath#2292 ·
Los mantenedores suelen responder en 1 día
-
A Taylor expansion differentiates without simplifying, so sin(x)/x to 11 terms runs out of memoryAbierto
Dificultad 4/5 3-5 días Aptitud para principiantes 55/100
ASC-Community/AngouriMath#2291 ·
Los mantenedores suelen responder en 1 día
-
Compiled, a scalar over a matrix argument divides by each entry, where evaluation invertsPosiblemente ocupada @Rafael-SOWNet la tomó hoy. Abierto
Dificultad 4/5 3-5 días Aptitud para principiantes 48/100
ASC-Community/AngouriMath#2287 ·
Los mantenedores suelen responder en 1 día
Todos los issues de ASC-Community/AngouriMath
Issues similares
-
امکان انتخاب متن پیام هرزنامهAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 66/100
MahdiyarGHD/GheychiApp#39 ·
Los mantenedores suelen responder en 1 día
-
bug effort:S P3
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
nightscout/nocturne#3136 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 67/100
Los mantenedores suelen responder en 1 día
-
Исправить опечатки в протоколеAbierto
Dificultad 1/5 Menos de una hora Aptitud para principiantes 76/100
GameShowLDA/AskMkiM#1075 ·
Los mantenedores suelen responder en 1 día