@@ -216,7 +216,30 @@ def test_combinatorica_permutations_1_2():
216216 (
217217 "Apply[Or, Map[(# === HideCycles[ToCycles[#]])&, Permutations[Range[5]] ]]" ,
218218 "False" ,
219- "None of the permutatoins on five elements is identical to its hidden cycle representation 1.2.4, Page 23" ,
219+ "None of the permutations on five elements is identical to its hidden cycle representation 1.2.4, Page 23" ,
220+ ),
221+ (
222+ "{StirlingFirst[6,3], StirlingS1[6,3]}" ,
223+ "{225, -225}" ,
224+ "StirlingFirst 1.2.4, Page 24" ,
225+ ),
226+ (
227+ "Select[ Map[ToCycles, Permutations[Range[4]]], (Length[#]==2)&]" ,
228+ "{{{1}, {3, 4, 2}}, {{1}, {4, 3, 2}}, {{2, 1}, {4, 3}}, "
229+ " {{2, 3, 1}, {4}}, {{2, 4, 1}, {3}}, {{3, 2, 1}, {4}}, "
230+ " {{3, 4, 1}, {2}}, {{3, 1}, {4, 2}}, {{4, 2, 1}, {3}}, "
231+ " {{4, 3, 1}, {2}}, {{4, 1}, {3, 2}}}" ,
232+ "11 permutations of 4 elements and 2 cycles, Page 24" ,
233+ ),
234+ (
235+ "NumberOfPermutationsByCycles[4,2]" ,
236+ "11" ,
237+ "NumberOfPermutationsByCycles 1.2.4, Page 24" ,
238+ ),
239+ (
240+ "{StirlingSecond[6,3], StirlingS2[6,3]}" ,
241+ "{90, 90}" ,
242+ "StirlingSecond 1.2.4, Page 24" ,
220243 ),
221244 ):
222245 check_evaluation (str_expr , str_expected , message )
0 commit comments