A trigonometric over a symbolic quadratic with a double root is NaN everywhere
Maintainer antworten meist innerhalb von 1 Tag
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Anfängerfreundlichkeit
- 35/100
Rechercherichtung
The bug is in SolveATrigonometricOfALinearOverAPowerOfALinear, which splits the quadratic over its two roots without checking whether the discriminant is zero. Start there, then reproduce the two inputs from the table with ToEntity().Integrate("x"). Done means the double-root case returns a finite antiderivative that passes the exact check at x = -3/10 and 4/5 with a = 3/2.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
A sine or cosine over a quadratic with symbolic coefficients and a double root is answered with an expression whose value is NaN everywhere.
| Input | 2.5.0 | master 7df66948 |
|---|---|---|
"sin(x)/(a*x^2 + 2*a*x + a)".ToEntity().Integrate("x") |
integral(...) |
644 characters, NaN at every point |
"sin(a + b*x)/((c + d)*x^2 + 2*(c + d)*x + (c + d))".ToEntity().Integrate("x") |
integral(...) |
1,128 characters, NaN at every point |
SolveATrigonometricOfALinearOverAPowerOfALinear splits the quadratic over its two roots, (-m ± sqrt(m^2 - 4 l n))/(2 l), without noticing that the discriminant is identically zero. The partial fractions then divide by the difference of two equal roots. The exact check gives NaN at x = −3/10 and 4/5 with a = 3/2. The fix reads a double root as the linear x + m/(2 l) twice.
Part of #718
- Vorherrschende Sprache
- C#
- Sterne
- 831
- Forks
- 79
- Ø Merge
- 1 Std. 12 Min.
- Gemergte PRs (30 T.)
- 518
Entwicklungsumgebung
- Kein Dockerfile und keine Docker-Compose-Datei
- Keine Pull-Request-Vorlage
- Beitragsleitfaden lesen
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus ASC-Community/AngouriMath
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
ASC-Community/AngouriMath#2220 · 4 Kommentare ·
Maintainer antworten meist innerhalb von 1 Tag
-
Opinions wanted
Schwierigkeit 4/5 Über eine Woche Anfängerfreundlichkeit 15/100
ASC-Community/AngouriMath#2319 · 4 Kommentare ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 18/100
ASC-Community/AngouriMath#2298 ·
Maintainer antworten meist innerhalb von 1 Tag
-
The kernel under WebAssembly: 1.26 MB Brotli over the bare runtime, and 0.2 s to the first SimplifyOffen
Schwierigkeit 3/5 Ein halber Tag Anfängerfreundlichkeit 48/100
ASC-Community/AngouriMath#2296 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 5/5 Über eine Woche Anfängerfreundlichkeit 25/100
ASC-Community/AngouriMath#2293 · 2 Kommentare ·
Maintainer antworten meist innerhalb von 1 Tag
Alle Issues in ASC-Community/AngouriMath
Ähnliche Issues
-
bug front-end social
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
gameguild-gg/gameguild#1237 ·
Maintainer antworten meist innerhalb von 1 Tag
-
bug needs-triage
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 68/100
microsoft/microsoft-ui-xaml#12515 · 1 Kommentar · 1 Reaktion ·
Maintainer antworten meist innerhalb von 2 Tagen
-
[v5-preview5] `func new` displays incorrect command in error message when project is not initializedOffenNeeds: Triage (Functions) v5 v5-preview5
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 85/100
Azure/azure-functions-core-tools#5838 ·
Maintainer antworten meist innerhalb von 2 Tagen
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 62/100
Maintainer antworten meist innerhalb von 1 Tag
-
customer-reported needs-team-triage question server-Azure.Mcp tools-Pricing
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
microsoft/mcp#4087 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag