# Which Mathematica function has the longest name (by character length?)

I came across DamerauLevenshteinDistance[u,v] in the documentation center so that got me thinking:

Which documented Mathematica function has the longest name?

Also, is there is a limit to the length of a symbol name?

• Let's see both -- with context, and without – QuantumDot Nov 2 '14 at 21:51

Which documented Mathematica function has the longest name

I assume then you want all of Mathematica, which includes all standard packages and contexts that come in the installation and not just in the System context.

I just run some code I have and added a check to obtain this information. Here is the table. According to this:

1. ProtonProtonElasticCrossSectionAtCenterOfMassEnergy10GeV at 56 in
$\text{CalculateUnitsUnitCommonSymbols*}$
2. AddUsedToGenerateSideEffectGraphicsFunctions in the FrontEnd with length 44.
3. GenericCylindricalAlgebraicDecomposition at 40 in Experimental context
4. InterpolatingFunctionInterpolationOrder at 39 in DifferentialEquations
5. CompileFunctionCallWithArithmeticFlags at 38 in Internal
6. MultivariateHypergeometricDistribution at 38 in the System

Full table is below.

I put this table below in a PDF to make it easy to see (can zoom in PDF). The link is at this page

• I used Artes' code with "**". New in V10. Along with the one everyone has been yearning for, CalculateParseContentCalculateAmusementParkRideData. – Michael E2 Nov 3 '14 at 0:20
• @MichaelE2: CalculateParseContentCalculateAmusementParkRideData If only I had known that had existed when I spent all those hours coding up TeacupsRide.nb. – DumpsterDoofus Nov 3 '14 at 1:32
• @MichaelE2 I just did not have "CalculateUnitsUnitCommonSymbols" in my list of packages, since I could not find it on the installation disk. I just added it there. Will update now. – Nasser Nov 3 '14 at 1:33
Max[StringLength@Names["System*"]]

38

 Select[ Names["System*"], 38 == StringLength[#] &]

{"MultivariateHypergeometricDistribution"}


As far as I can say there is no limit for lengths of symbol names, besides that of the memory limitation.

• And then there's "CalculateUnitsUnitCommonSymbolsProtonProtonElasticCrossSectionAtCenterOfMassEnergy10GeV"... +1 – Michael E2 Nov 2 '14 at 21:56
• +1. Could also do (in V10) MaximalBy[Names["System*"], StringLength], which is a bit simpler. – Leonid Shifrin Nov 2 '14 at 22:06
• @MichaelE2 Thanks. However NameQ acting on "CalculateUnits..." yields false... – Artes Nov 2 '14 at 22:06
• Yes, Leonid is right. I forgot some back ticks..."CalculateUnitsUnitCommonSymbolsProtonProtonElasticCrossSectionAtCenterOfMassEnergy10GeV". – Michael E2 Nov 2 '14 at 22:11
• The votes on this one must be killing you inside... ;) – rm -rf Nov 2 '14 at 23:33