A trigonometric over a symbolic quadratic with a double root is NaN everywhere
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
調査の方向性
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.
索引モデルが issue の本文から書いたものです。
説明
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
- 主要言語
- C#
- スター
- 831
- フォーク
- 79
- 平均マージ
- 2時間 17分
- マージ済み PR(30日)
- 443
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
ASC-Community/AngouriMath のほかの issue
-
難易度 5/5 1週間以上 初心者へのやさしさ 12/100
ASC-Community/AngouriMath#1885 ·
メンテナーはふだん 1 日以内に返信
-
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
ASC-Community/AngouriMath#1883 ·
メンテナーはふだん 1 日以内に返信
-
難易度 5/5 1週間以上 初心者へのやさしさ 30/100
ASC-Community/AngouriMath#1807 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 5/5 1週間以上 初心者へのやさしさ 25/100
ASC-Community/AngouriMath#1692 ·
メンテナーはふだん 1 日以内に返信
-
難易度 5/5 1週間以上 初心者へのやさしさ 30/100
ASC-Community/AngouriMath#1690 ·
メンテナーはふだん 1 日以内に返信
ASC-Community/AngouriMath の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
メンテナーはふだん 1 日以内に返信
-
good first issue help wanted ready-for-human
難易度 2/5 半日 初心者へのやさしさ 62/100
メンテナーはふだん 1 日以内に返信
-
ready-for-agent size:S status:todo
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
elsa-workflows/elsa-foundation#2830 ·
メンテナーはふだん 1 日以内に返信
-
Review - Maintainer WG-Maintainers-Build
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
PowerShell/PowerShell#28220 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
area: docs eco: dotnet good first issue help wanted lane: free-agent roadmap size: XS type: docs
難易度 2/5 1時間未満 初心者へのやさしさ 72/100
arminazimi/evergreen#377 ·
メンテナーはふだん 1 日以内に返信