Hacktoberfest 2026: as issues que os mantenedores marcaram para outubro, abertas e boas para iniciantes. Ver issues do Hacktoberfest

Integrals over a trinomial with complex roots in x^2 beside a root are long

Aberta
#1,885 0 comentários 0 reações 0 responsáveis Ver no GitHub

Mantenedores costumam responder em até 1 dia

Ninguém assumiu esta issue ainda.

Avaliação

Dificuldade
5/5
Tempo estimado
Mais de uma semana
Facilidade para iniciantes
12/100
Tipo de issue
Refatoração
Clareza
Precisa de esclarecimento
Status de atividade
Ativa
Stack de tecnologia
csharp
Domínio
backend

Direção de pesquisa

Start by reproducing the two integrals in the table and comparing their answer lengths, then check why the complex-root answer becomes NaN when r is complex. The issue leaves open whether to rewrite the pieces over x^2 - r so their cases hold for complex r, or to shorten the linear-over-quadratic pieces, and that choice needs a maintainer decision first. Done means the complex-pair answer approaches the real-roots size without NaN.

Escrita pelo modelo de indexação a partir do texto da issue.

Descrição

Part of #718

A trinomial with complex roots in x^2, beside a root of a quadratic, gives long answers. The PR that splits a + b x^2 + c x^4 over its factors writes it as c (x^2 + p x + m)(x^2 - p x + m), two real quadratics, wherever b^2 < 4 a c. Each piece is then a linear over a quadratic beside the root, and those answers are long. Measured with the factors named:

Integrand Answer
x^2 sqrt(d + k x^2)/(c (x^2 - r)(x^2 - s)), real roots 1,458 chars
x^2 sqrt(d + k x^2)/(c (x^2 + p x + m)(x^2 - p x + m)), conjugate pair 13,063 chars

The whole answer for x^2 sqrt(d + k x^2)/(a + b x^2 + c x^4) is 29,139 characters, most of it the second case.

The real-roots writing cannot simply be reused with complex r. The pieces' answers are piecewise on signs like that of d + k r, and with a complex r no case is taken, so the answer is NaN everywhere.

What I'd expect: something nearer the real-roots size. Either the pieces over x^2 - r get a form whose cases make sense for complex r, or the linear-over-a-quadratic pieces get shorter.

Linguagem predominante
C#
Estrelas
831
Forks
79
Merge médio
2h 17min
PRs com merge (30d)
443

Preparar o ambiente

Primeiros passos

  1. Leia a issue inteira e depois o guia de contribuição do projeto.
  2. Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
  3. Faça um fork do repositório e trabalhe em uma branch.
  4. Abra um pull request que referencie o número da issue.

Mais de ASC-Community/AngouriMath

Todas as issues de ASC-Community/AngouriMath

Issues semelhantes

Mais issues de C#

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.