From ebdf2fe25522f215868c3eac78e54c241a5fce92 Mon Sep 17 00:00:00 2001 From: Alex Herbert Date: Thu, 8 Aug 2024 17:28:14 +0100 Subject: [PATCH] Correct Stirling number user guide example --- src/site/apt/userguide/index.apt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/site/apt/userguide/index.apt b/src/site/apt/userguide/index.apt index 885cf27f..f960c766 100644 --- a/src/site/apt/userguide/index.apt +++ b/src/site/apt/userguide/index.apt @@ -305,9 +305,9 @@ list.forEach(c -> System.out.println(Arrays.toString(c))); For example a set of 3 elements may be partitioned into: +------------------------------------------+ -Stirling.stirlingS2(3, 1) // 1 : {{1}, {2}, {3}} +Stirling.stirlingS2(3, 3) // 1 : {{1}, {2}, {3}} Stirling.stirlingS2(3, 2) // 3 : {{1, 2}, {3}}, {{1, 3}, {2}} and {{1}, {2, 3}} -Stirling.stirlingS2(3, 3) // 1 : {{1, 2, 3}} +Stirling.stirlingS2(3, 1) // 1 : {{1, 2, 3}} +------------------------------------------+ The evaluation is limited by the <<>> datatype and the method will raise an