Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

A trigonometric over a symbolic quadratic with a double root is NaN everywhere

クローズ
#1,879 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
35/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
活発
技術スタック
csharp
領域
backend

調査の方向性

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

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

ASC-Community/AngouriMath のほかの issue

ASC-Community/AngouriMath の issue をすべて見る

似ている issue

C# の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。