Skip to content

Commit 3aff429

Browse files
The sine and cosine integrals are integrated to (#1530)
A polynomial in sines and cosines of one linear, beside a polynomial, over powers of linears is integrated to Si and Ci, by their definitions: int sin(q u)/u du = Si(q u) and int cos(q u)/u du = Ci(q u). Each monomial sin^s cos^c is a sum of sines and cosines of multiples of the argument, and under u = the linear every term is u^m sin(q u) or u^m cos(q u): elementary for m >= 0, Si or Ci for m = -1, and by parts toward them below. Several linears are split into partial fractions over them first, after dividing out the polynomial part, and an argument a + b x^r beside a power of x is the same question under u = x^r. Rubi's 4.1.10, 4.1.11, 4.1.12 and 4.7.3. Part of #1501. Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
1 parent fd8fc71 commit 3aff429

6 files changed

Lines changed: 531 additions & 1 deletion

File tree

‎BREAKING-CHANGES.md‎

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1654,6 +1654,23 @@ was refused, so each was read as a product with an undeclared variable
16541654
| `"Chi(1)".Simplify()` | `Chi` | `Chi(1)`, and `0.8378669409802082…` evaluated |
16551655
| `"Si(x)".Differentiate("x")` | `Si` | `sin(x) / x` |
16561656

1657+
### The sine and cosine integrals are integrated to
1658+
1659+
`sin(x)/x` was left unintegrated. A polynomial in sines and cosines of a linear, beside a
1660+
polynomial, over powers of linears is now integrated to `Si` and `Ci`: each monomial of the sines
1661+
and cosines is a sum of sines and cosines of multiples of the argument, and under `u` = the linear
1662+
each term is `u^m sin(q u)` or `u^m cos(q u)`, which is `Si(q u)` or `Ci(q u)` for `m = -1` and by
1663+
parts toward them below. Several linears are split into partial fractions over them first, and an
1664+
argument `a + b x^r` beside a power of `x` is the same question under `u = x^r`
1665+
([#1501](https://github.com/asc-community/AngouriMath/issues/1501)).
1666+
1667+
| Input | Was (2.5.0) | Now |
1668+
|---|---|---|
1669+
| `"sin(x)/x".Integrate("x")` | `integral(sin(x) / x, x)` | `Si(x) + C` |
1670+
| `"sin(x)^2/x".Integrate("x")` | `integral(sin(x) ^ 2 / x, x)` | `1/2 * ln(x) + -1/2 * Ci(2 * x) + C` |
1671+
| `"sin(x)/(x*(1+x))".Integrate("x")` | `integral(sin(x) / (x * (1 + x)), x)` | `Si(x) + -cos(1) * Si(1 + x) + sin(1) * Ci(1 + x) + C` |
1672+
| `"sin(a+b/x)/x".Integrate("x")` | `integral(sin(a + b / x) / x, x)` | `-(cos(a) * Si(b * 1 / x) + sin(a) * Ci(b * 1 / x)) + C` |
1673+
16571674
### A definite integral is the limit at a bound where its antiderivative is undefined
16581675

16591676
`integral(x * e^(-x), x, 0, +oo)` was `NaN`, this library's way of saying a value does not

‎Sources/.editorconfig‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -666,3 +666,6 @@ file_header_template=\nCopyright (c) 2019-2026 Angouri.\nAngouriMath is licensed
666666

667667
[Tests/UnitTests/Convenience/TrigonometricIntegralTest.cs]
668668
file_header_template=\nCopyright (c) 2019-2026 Angouri.\nAngouriMath is licensed under MIT.\nDetails: https://github.com/asc-community/AngouriMath/blob/master/LICENSE.md.\nWebsite: https://am.angouri.org.\n
669+
670+
[Tests/UnitTests/Calculus/TrigonometricIntegralIntegrationTest.cs]
671+
file_header_template=\nCopyright (c) 2019-2026 Angouri.\nAngouriMath is licensed under MIT.\nDetails: https://github.com/asc-community/AngouriMath/blob/master/LICENSE.md.\nWebsite: https://am.angouri.org.\n

0 commit comments

Comments
 (0)