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?

  • $\begingroup$ Let's see both -- with context, and without $\endgroup$ – 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
  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

Mathematica graphics

  • 2
    $\begingroup$ I used Artes' code with "*`*". New in V10. Along with the one everyone has been yearning for, CalculateParse`Content`Calculate`AmusementParkRideData. $\endgroup$ – Michael E2 Nov 3 '14 at 0:20
  • $\begingroup$ @MichaelE2: CalculateParseContentCalculateAmusementParkRideData` If only I had known that had existed when I spent all those hours coding up TeacupsRide.nb. $\endgroup$ – DumpsterDoofus Nov 3 '14 at 1:32
  • $\begingroup$ @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. $\endgroup$ – Nasser Nov 3 '14 at 1:33
 Select[ Names["System`*"], 38 == StringLength[#] &]

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

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.