"Source: Text/Aggregates/Set.text";
"Line: 604";
"Date: Thu Sep 25 14:47:47 2025";
"Main: Fri Sep 26 14:29:19 2025";
// original file: Text/Aggregates/Set.text, line: 604
// Example: H10E4 ()
print "Example: H10E4";
ei := GetEchoInput();
SetEchoInput(true);
M := {* 1, 1, 1, 3, 5 *};
M;
M := {* 1^^4, 2^^5, 1/2^^3 *};
M;
// Count frequency of digits in first 1000 digits of pi:
pi := Pi(RealField(1001));
dec1000 := Round(10^1000*(pi-3));
I := IntegerToString(dec1000);
F := {* I[i]: i in [1 .. #I] *};
F;
for i := 0 to 9 do i, Multiplicity(F, IntegerToString(i)); end for;
SetEchoInput(ei);
