Summary of Core Language Features added in 6.0
Summary of Core Language Features added in 6.0
PeterCullenBurbery
In this notebook I create some examples for core language features added in 6.0. This is helpful for making sure I understand the basics first before I move onto more advanced stuff like geographics and machine learning and statistics and physics. I also think its interesting to see the evolution of the Wolfram language over time. I started using Mathematica with major version 12 and maybe incremental release 12.1 or 12.2 and like looking at previous releases to learn new things. I'm hoping to look at other releases like 7.0, 8.0 as well, but the notebooks get very large very quickly so I will upload related notebooks after another to avoid reaching the 20 megabyte upload limit for Wolfram Community.
I will note that I will not be using vowels a,e,i,o, u, or y in the examples. I want to reserve vowels for special purposes and use consonants by default. For example I can use i as the dummy index variable for table like
In[]:=
TableCos,{i,19}
π
i
Out[]=
-1,0,,,(1+,Cos,Cos,Cos,+,Cos,,Cos,Cos,Cos,Cos,Cos,Cos,Cos
1
2
1
2
1
4
5
),3
2
π
7
π
8
π
9
5
8
5
8
π
11
1+
3
2
2
π
13
π
14
π
15
π
16
π
17
π
18
π
19
I would also like to mention that I will not include that much text and mainly code.
I will also note that I used PersistResourceFunction with my ResourceFunction SymbolicIndexedArray for testing purposes, so I don't have to add ResourceFunction["SymbolicIndexedArray"] every time.
I can't look at earlier releases because there's no guide for whats new in 5.0. The farthest back I can go in the documentation system is version 6.0
Core Language
Span
Span
Band
Band
ReplacePart
ReplacePart
ArrayFlatten
ArrayFlatten
Flatten
Flatten
Join
Join
Reverse
Reverse
PadLeft
PadLeft
PadRight
PadRight
SortBy
SortBy
Tally
Tally
BinCounts
BinCounts
BinLists
BinLists
Accumulate
Accumulate
Differences
Differences
Commonest
Commonest
Riffle
Riffle
RandomChoice
RandomChoice
RandomSample
RandomSample
ListConvolve
ListConvolve
ListCorrelate
ListCorrelate
Outer
Outer
Tuples
Tuples
Transpose
Transpose
In[]:=
m={{3,4,1},{2,3,1},{5,4,2}};mt=Transpose[m]
Out[]=
{{3,2,5},{4,3,4},{1,1,2}}
In[]:=
m
Out[]=
{{3,2,5},{4,3,4},{1,1,2}}
In[]:=
GraphicsRow[{MatrixPlot[m],MatrixPlot[mt]},ImageSize->Medium]
Out[]=
In[]:=
SymbolicIndexedArray[x,{2,19}]//MatrixForm
Out[]//MatrixForm=
x 1×1 | x 1×2 | x 1×3 | x 1×4 | x 1×5 | x 1×6 | x 1×7 | x 1×8 | x 1×9 | x 1×10 | x 1×11 | x 1×12 | x 1×13 | x 1×14 | x 1×15 | x 1×16 | x 1×17 | x 1×18 | x 1×19 |
x 2×1 | x 2×2 | x 2×3 | x 2×4 | x 2×5 | x 2×6 | x 2×7 | x 2×8 | x 2×9 | x 2×10 | x 2×11 | x 2×12 | x 2×13 | x 2×14 | x 2×15 | x 2×16 | x 2×17 | x 2×18 | x 2×19 |
In[]:=
Transpose[SymbolicIndexedArray[x,{2,19}]]//MatrixForm
Out[]//MatrixForm=
x 1×1 | x 2×1 |
x 1×2 | x 2×2 |
x 1×3 | x 2×3 |
x 1×4 | x 2×4 |
x 1×5 | x 2×5 |
x 1×6 | x 2×6 |
x 1×7 | x 2×7 |
x 1×8 | x 2×8 |
x 1×9 | x 2×9 |
x 1×10 | x 2×10 |
x 1×11 | x 2×11 |
x 1×12 | x 2×12 |
x 1×13 | x 2×13 |
x 1×14 | x 2×14 |
x 1×15 | x 2×15 |
x 1×16 | x 2×16 |
x 1×17 | x 2×17 |
x 1×18 | x 2×18 |
x 1×19 | x 2×19 |
In[]:=
{{b,c},{d,f},{g,h}}
Out[]=
{{b,d,g},{c,f,h}}