We have added a calculator command which can find the MostCommon element of a set.
For example, if we create an Explode parameter such as:
$m=explode(“MATHEMATICAL”)
(Remember that an explode parameter takes a string of characters and explodes it into individual characters so $m will contain {M,A,T,H,E,M,A,T,I,C,A,L})
The calculator command:
{mostcommon($m)}
will contain “A”, which is the most common element in the set.
If there is more than one “most common” element, all of them are returned by the MostCommon command. For example, if $m = explode(“MATHEMATICS”), {mostcommon($m)} will return {M,A,T}







