# How to list all functions in a package? [duplicate]

I got a package which can be loaded in MMA. The manual for the package does not give demonstrations of all functions/commands. Hoe can i find all the commands in the package?

• This works for one of the built-in packages: Names["NDSolveFEM*"], using the wildcard * character – Jason B. Apr 27 '16 at 9:59
• And not only for built-ins, but more generally Names["MyPackage*"]. Also likely to be useful for an external package: Names["MyPackagePrivate*"] – LLlAMnYP Apr 27 '16 at 10:45
• @LLlAMnYP - but then don't you need to load the package in first? I was able to get the list of names for the FEM package without entering Needs["...."] first. But for a package of my own that I have in a special folder (in the $Path) that I use for packages, I had to load it in with Needs before I could get the Names – Jason B. Apr 27 '16 at 11:10 • @JasonB Yeah, that's right. I don't think, it's possible without loading it. – LLlAMnYP Apr 27 '16 at 11:12 ## 1 Answer Once you've loaded the package in with Needs then you can find all the included functions using Names with a wildcard: Needs["VariationalMethods"] Names["VariationalMethods*"] (* {"EulerEquations", "FirstIntegral", "FirstIntegrals", "NVariationalBound", "VariationalBound", "VariationalD"} *)  or Needs["PolyhedronOperations"] Names["PolyhedronOperations*"] (* {"Geodesate", "OpenTruncate", "Stellate", "Truncate"} *)  This works with user-installed packages as well, like MaTeX Needs["MaTeX"] Names["MaTeX*"] (* {"BlackFrame", "ClearMaTeXCache", "ConfigureMaTeX", "MaTeX"} *)  You can even use it to see the private function names, here again on a user-defined package, but this one is likely to give a long list, giving any variables that are defined within scoping constructs like Module in the package, Needs["DivergentColorMaps"] Names["DivergentColorMaps*"] Names["DivergentColorMapsPrivate*"] (* {"CoolToWarm", "DivergentColorFunc", "DivergentColorScheme", "DivergentMaps"} *) (* {"DivergentColorMapsPrivatea", "DivergentColorMapsPrivateadjusthue",...... "DivergentColorMapsPrivatergb2msh", "DivergentColorMapsPrivatergb2xyz", .......... "DivergentColorMapsPrivatez", "DivergentColorMapsPrivatezi", \ "DivergentColorMapsPrivatez$"} *)
`