Hello Wolfram Community,
This might be a useful time filler exercise for you.
From your Wolfram elementary course notes, I now know that
‘the larger of two random numbers between 0 and 10’
is coded as Max[RandomInteger[10], RandomInteger[10]]
I have found two other fascinating correspondences.
First the natural language -
make a graph of a vector (1,2,3,1,1) as a topological entity -
the code solution is
ListPlot[{1,2,3,1,1)}]
Again. ’ display a cyclic shift in a permutation set’ codes as
ListPlot[{10,9,8,7,6,5,4,3,2,1}] ; ListPlot[{1,10,9,8,7,6,5,4,3,2}]
Any other suggestions for natural language to WL code in maths?
Regards,
Paul Mills
Research Software.