Take the 2-minute tour ×
Mathematica Stack Exchange is a question and answer site for users of Mathematica. It's 100% free, no registration required.

Is there a quick way to search all built-in Mathematica functions by name? Say I want to find all functions whose name contains "Graph", such as GraphPlot, NeighborhoodGraph, Subgraph, and so forth. When I enter "Graph" into Mathematica's documentation system, I get some, but not all of the functions whose names contain "Graph". I also get a lot of names which are not functions, as well as other material of varying relevance.

I just want to search for functions by name or partial name. Also, I don't want to see functions from optional packages -- only the basic ones that load when Mathematica starts up.

share|improve this question
    
Try ?*Graph* . –  b.gatessucks Jul 30 '12 at 15:07
    
@b.gatessucks - Slow, as it searches half the internet. Also returns more than the built-in functions; the first entry is "cryptographic number theory". –  stevenvh Jul 30 '12 at 15:11
    
@stevenvh On my system it is very fast and I only get the System` context. –  b.gatessucks Jul 30 '12 at 15:20
    
@b.gatessucks - Are we talking about the help window? "graph" finds 714 results in < 1 second, "graph" finds 2192 results in 26(!) seconds. Searching half the internet may be incorrect, but that's the impression you get. The "cryptographic number theory" refers to the Mathematica Guide, but so do some entries in the "graph" search result. –  stevenvh Jul 30 '12 at 15:29
    
@stevenvh No, you can type the command in a notebook. Thanks for the clarification. –  b.gatessucks Jul 30 '12 at 15:30
show 5 more comments

2 Answers 2

Names["*Graph*"]

(*
{"AcyclicGraphQ", 
.....
, "WheelGraph"}
*)

or

Information["*Graph*"]

Mathematica graphics

share|improve this answer
add comment

In the Documentation Center, you can use the wildcard * as well, as in *Graph*. The difference between doing this in documentation or in the notebook interface (by typing ?*Graph*) is:

  • The notebook will give you a concise list of all matching names
  • However, the above list will also contain names that are not built-in but have been defined by the user or in packages. The listings fortunately make it easy to tell which are the built-in definitions: they are under the `System`context.
  • Sometimes you may be interested in finding functions that aren't in the system context but that are still part of Mathematica's standard add-on packages. For example, the Laplacian is in in the vector analysis package which isn't loaded automatically but is part of Mathematica. This won't show up when you type ?Laplacian* while the packages hasn't been loaded.
  • In this case, doing the search Laplacian* in the Documentation Center may be the best way to look up that function.
share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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