From c3dc4e6569351866ba87acc1465044ffff7bb6fd Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sun, 9 Feb 2025 08:45:47 +0000 Subject: [PATCH] =?UTF-8?q?Preview=20PR=201407:=20fa63543284ee50ae26d89dac?= =?UTF-8?q?0b1d1ce5b15d7b42=20=E2=86=90=20304f099f24e1aa8d5d8116d9cc34c930?= =?UTF-8?q?570d44fd?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- gen/pull/1407/reference/chrono/make24.html | 2 +- gen/pull/1407/reference/cmath/lgamma.html | 4 +- .../1407/reference/cmath/sph_legendre.html | 4 +- gen/pull/1407/reference/cmath/tgamma.html | 6 +-- gen/pull/1407/rss.xml | 41 ++++++++++--------- 5 files changed, 29 insertions(+), 28 deletions(-) diff --git a/gen/pull/1407/reference/chrono/make24.html b/gen/pull/1407/reference/chrono/make24.html index 28a172633..7769452ac 100644 --- a/gen/pull/1407/reference/chrono/make24.html +++ b/gen/pull/1407/reference/chrono/make24.html @@ -239,7 +239,7 @@

assert(chrono::make24(12h, false) == 0h); assert(chrono::make24(12h, true) == 12h); - assert(chrono::make24(1h, true) == 1uwGkozNrZqBAcmZszDyPQrhRGXVFYDlw); + assert(chrono::make24(1h, true) == 13h); assert(chrono::make24(3h, true) == 15h); assert(chrono::make24(11h, true) == 23h); } diff --git a/gen/pull/1407/reference/cmath/lgamma.html b/gen/pull/1407/reference/cmath/lgamma.html index ef8698cdf..ae1fa8b4e 100644 --- a/gen/pull/1407/reference/cmath/lgamma.html +++ b/gen/pull/1407/reference/cmath/lgamma.html @@ -282,9 +282,9 @@

備考

  • C++23では、(1)、(2)、(3)が(4)に統合され、拡張浮動小数点数型を含む浮動小数点数型へのオーバーロードとして定義された
  • +
  • この関数はガンマ関数 (tgamma) がオーバーフローするような場合に使う。 + 具体例についてはガンマ関数の備考を参照のこと。
  • -

    この関数はガンマ関数 (tgamma) がオーバーフローするような場合に使う。 -具体例についてはガンマ関数の備考を参照のこと。

    #include <cmath>
     #include <iostream>
    diff --git a/gen/pull/1407/reference/cmath/sph_legendre.html b/gen/pull/1407/reference/cmath/sph_legendre.html
    index 35660146b..75af54ce6 100644
    --- a/gen/pull/1407/reference/cmath/sph_legendre.html
    +++ b/gen/pull/1407/reference/cmath/sph_legendre.html
    @@ -327,9 +327,9 @@ 

    球面調和関数

    if (m == 0) return std::sph_legendre(l, 0u, theta); else if (m > 0) - return std::numbers::sqrt2 * std::sph_legendre(l, (unsigned) m, theta) * std::cos(m * (phi - std::numbers::pi)); + return std::numbers::sqrt2 * std::sph_legendre(l, (unsigned) m, theta) * std::cos(m * (phi - std::numbers::pi)); else - return std::numbers::sqrt2 * std::sph_legendre(l, (unsigned) -m, theta) * std::sin(-m * (phi - std::numbers::pi)); + return std::numbers::sqrt2 * std::sph_legendre(l, (unsigned) -m, theta) * std::sin(-m * (phi - std::numbers::pi)); }

    diff --git a/gen/pull/1407/reference/cmath/tgamma.html b/gen/pull/1407/reference/cmath/tgamma.html index e232bc409..c447842ba 100644 --- a/gen/pull/1407/reference/cmath/tgamma.html +++ b/gen/pull/1407/reference/cmath/tgamma.html @@ -302,9 +302,9 @@

    lgamma との使い分け<

    -nan
     2025
     

    -

    上の結果では、直接ガンマ関数を計算した場合はオーバーフローによって inf / inf となり最終結果が nan になっているが、lgamma を使った場合には正しい値が計算できている。 +

    上の結果では、直接ガンマ関数を計算した場合はオーバーフローによって inf / inf となり最終結果が -nan になっているが、lgamma を使った場合には正しい値が計算できている。 ただし、lgamma は飽くまでガンマ関数の「絶対値」の対数であることに注意する。 -ガンマ関数の引数が負になる場合はガンマ関数が負になりうるので符号は別に求める必要がある。

    +ガンマ関数の引数が負になる場合はガンマ関数が負の値を取りうるので符号は別に求める必要がある。

    #include <cmath>
     #include <iostream>
    @@ -348,7 +348,7 @@ 

    備考

    関連項目

      -
    • ガンマ関数の絶対値の対数 lgamma
    • +
    • ガンマ関数の絶対値の自然対数 lgamma

    参照

      diff --git a/gen/pull/1407/rss.xml b/gen/pull/1407/rss.xml index 375c64b83..ed0fb7efa 100644 --- a/gen/pull/1407/rss.xml +++ b/gen/pull/1407/rss.xml @@ -2,26 +2,27 @@ cpprefjp - C++日本語リファレンス - 2025-02-09T08:29:41.103679 - f834843b-b61d-4fd5-93cd-3e8e730467bc + 2025-02-09T08:45:42.853044 + a1fd56e9-1ef1-47dd-8988-8573fabb6ad5 lgamma -- cmath (tgamma): lgamma を使うべき場合について記述 - 7fdc2d3a8467a827f2dc3d37e448de2949e87576:reference/cmath/lgamma.md + fa63543284ee50ae26d89dac0b1d1ce5b15d7b42:reference/cmath/lgamma.md 2025-02-09T16:31:26+09:00 <pre><code>diff --git a/reference/cmath/lgamma.md b/reference/cmath/lgamma.md -index 60de4faba..43a1329a0 100644 +index 60de4faba..03027e27d 100644 --- a/reference/cmath/lgamma.md +++ b/reference/cmath/lgamma.md -@@ -61,6 +61,8 @@ namespace std { +@@ -60,7 +60,8 @@ namespace std { + - `x = -∞` の場合、戻り値は `+∞` となる。 - `x = +∞` の場合、戻り値は `+∞` となる。 - C++23では、(1)、(2)、(3)が(4)に統合され、拡張浮動小数点数型を含む浮動小数点数型へのオーバーロードとして定義された - -+この関数はガンマ関数 ([`tgamma`](tgamma.md)) がオーバーフローするような場合に使う。 -+具体例については[ガンマ関数の備考](tgamma.md#remarks-lgamma)を参照のこと。 +- ++- この関数はガンマ関数 ([`tgamma`](tgamma.md)) がオーバーフローするような場合に使う。 ++ 具体例については[ガンマ関数の備考](tgamma.md#remarks-lgamma)を参照のこと。 ## 例 ```cpp example @@ -36,11 +37,11 @@ index 60de4faba..43a1329a0 100644 tgamma -- cmath (tgamma): lgamma を使うべき場合について記述 - 7fdc2d3a8467a827f2dc3d37e448de2949e87576:reference/cmath/tgamma.md + fa63543284ee50ae26d89dac0b1d1ce5b15d7b42:reference/cmath/tgamma.md 2025-02-09T16:31:26+09:00 <pre><code>diff --git a/reference/cmath/tgamma.md b/reference/cmath/tgamma.md -index 9b96a0bcb..c3622277a 100644 +index 4dcbd333a..df93b11bb 100644 --- a/reference/cmath/tgamma.md +++ b/reference/cmath/tgamma.md @@ -64,6 +64,32 @@ $$ \Gamma (x) = \int_0^\infty t^{x-1} e^{-t} dt $$ @@ -70,9 +71,9 @@ index 9b96a0bcb..c3622277a 100644 +2025 +``` + -+上の結果では、直接ガンマ関数を計算した場合はオーバーフローによって inf / inf となり最終結果が nan になっているが、`lgamma` を使った場合には正しい値が計算できている。 ++上の結果では、直接ガンマ関数を計算した場合はオーバーフローによって inf / inf となり最終結果が -nan になっているが、`lgamma` を使った場合には正しい値が計算できている。 +ただし、`lgamma` は飽くまでガンマ関数の「絶対値」の対数であることに注意する。 -+ガンマ関数の引数が負になる場合はガンマ関数が負になりうるので符号は別に求める必要がある。 ++ガンマ関数の引数が負になる場合はガンマ関数が負の値を取りうるので符号は別に求める必要がある。 ## 例 ```cpp example @@ -87,11 +88,11 @@ index 9b96a0bcb..c3622277a 100644 tgamma -- cmath (tgamma): 階乗とガンマ関数の関係を式で明記 - c3f3807801ea65068d795935d4252cc800c67fee:reference/cmath/tgamma.md + ad56662c52ea714dafbf512ffa0e2ce60a4bc925:reference/cmath/tgamma.md 2025-02-09T16:19:46+09:00 <pre><code>diff --git a/reference/cmath/tgamma.md b/reference/cmath/tgamma.md -index 9214b4b45..9b96a0bcb 100644 +index 1a77226d8..4dcbd333a 100644 --- a/reference/cmath/tgamma.md +++ b/reference/cmath/tgamma.md @@ -52,7 +52,7 @@ namespace std { @@ -114,7 +115,7 @@ index 9214b4b45..9b96a0bcb 100644 lgamma -- cmath (std::{tgamma,lgamma}): 相互リンク - b2066e2bbcef4a3018f2ae0be3db41071166da73:reference/cmath/lgamma.md + a417f128f8bf5e12c7508560858d06d774fc12be:reference/cmath/lgamma.md 2025-02-09T16:18:18+09:00 <pre><code>diff --git a/reference/cmath/lgamma.md b/reference/cmath/lgamma.md @@ -150,11 +151,11 @@ index bcb8dd552..60de4faba 100644 tgamma -- cmath (std::{tgamma,lgamma}): 相互リンク - b2066e2bbcef4a3018f2ae0be3db41071166da73:reference/cmath/tgamma.md + a417f128f8bf5e12c7508560858d06d774fc12be:reference/cmath/tgamma.md 2025-02-09T16:18:18+09:00 <pre><code>diff --git a/reference/cmath/tgamma.md b/reference/cmath/tgamma.md -index 7fff0221b..9214b4b45 100644 +index 7fff0221b..1a77226d8 100644 --- a/reference/cmath/tgamma.md +++ b/reference/cmath/tgamma.md @@ -110,6 +110,8 @@ tgamma(+∞) = inf @@ -162,7 +163,7 @@ index 7fff0221b..9214b4b45 100644 - GCC 4.6.1 以上 +## 関連項目 -+- ガンマ関数の絶対値の対数 [`lgamma`](lgamma.md) ++- ガンマ関数の絶対値の自然対数 [`lgamma`](lgamma.md) ## 参照 - [P1467R9 Extended floating-point types and standard names](https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2022/p1467r9.html) @@ -177,7 +178,7 @@ index 7fff0221b..9214b4b45 100644 tgamma -- cmath (std::tgamma): ガンマ関数の定義式を追記 - b3e348c7b11088d7ebca3e71818d82eb421eee9b:reference/cmath/tgamma.md + 42fa66bd811f9dfa927b44af99d97bfecf48e584:reference/cmath/tgamma.md 2025-02-09T16:12:26+09:00 <pre><code>diff --git a/reference/cmath/tgamma.md b/reference/cmath/tgamma.md @@ -209,7 +210,7 @@ index 4f3e397eb..7fff0221b 100644 legendre -- cmath (std::legendre): ルジャンドル多項式の範囲外エラーについて記述 - 41227ca53a09f589115d141f7e963782003d7690:reference/cmath/legendre.md + 78acf1e72f4a1bff69551ca6756068f65b99b85c:reference/cmath/legendre.md 2025-02-09T15:51:08+09:00 <pre><code>diff --git a/reference/cmath/legendre.md b/reference/cmath/legendre.md