Function Repository Resource:

SearchOnMath

Source Notebook

Submit queries containing text and/or mathematical formulas to the SearchOnMath web service

Contributed by: Flavio B. Gonzaga (founder of the SearchOnMath Project) - searchonmath.com

ResourceFunction["SearchOnMath"]["query"]

returns in a Dataset the search results from searchonmath.com based on the specified query.

ResourceFunction["SearchOnMath"]["query","Print"]

will also print the search results.

Details

Formulas must be written in LATEX format and enclosed between the delimiters \( and \), like: Einstein’s formula \(E=mc^2\) revolutionized physics.
Backslashes must be escaped.
Mandatory textual elements can be defined by using quotation marks, like: Einstein's formula \(E=mc^2\) "revolutionized physics".
The function retrieves the top 5 results.
The returned Dataset contains the following fields:
Titletitle of the page
URLURL of the page
Sourcesource (Wikipedia, Stack Exchange Mathematics…)
Formulaformula in MathML presentation format
Contextsnippet of the page containing the found formula (in HTML format)
See the Author Notes below for a list of supported sources.

Examples

Basic Examples (2) 

Search for results about the heat equation :

In[1]:=
ResourceFunction[
 "SearchOnMath"]["\\(\\frac{\\partial \\phi}{\\partial t} = k \\nabla^2 \\phi\\)"]
Out[1]=
In[2]:=
ResourceFunction[
 "SearchOnMath"]["\\(\\frac{\\partial \\phi}{\\partial t} = k \\nabla^2 \\phi\\)", "Print"]

Please find below an illustrative example of the printed results for the query above:

Scope (2) 

SearchOnMath has the capability to handle complex queries involving multiple formulas. Here is an example of a query composed of multiple formulas, with "magnetic field" being defined as mandatory term:

In[3]:=
ResourceFunction[
 "SearchOnMath"]["Maxwell's equations in a vacuum describe a wave propagating at speed \\(c\\) as the interaction of electric field \\(E\\) and \"magnetic field\" \\(B\\): \\(\\nabla \\cdot E = 0\\), \\(\\nabla \\times E = -\\frac{\\partial B}{\\partial t}\\), \\(\\nabla \\cdot B = 0\\), \\(\\nabla \\times B = \\frac{1}{c^2} \\frac{\\partial E}{\\partial t}\\)"]
Out[3]=

Please find below an illustrative example of the printed results for the query above:

Publisher

Flavio Gonzaga

Version History

  • 1.0.0 – 26 June 2023

Source Metadata

Related Resources

Author Notes

SearchOnMath provides students and researchers with a dedicated platform to search for mathematical content, filling a gap that traditional textual search engines often overlook.

With SearchOnMath, students can easily connect with peers who can assist them in solving problems or provide additional insights on specific formulas.

Researchers can leverage the platform to explore the arXiv repository, discovering various uses of a particular formula and determining if it has previously appeared in specific areas of study.

By offering specialized search capabilities for mathematical knowledge, SearchOnMath empowers users to delve deeper into their research and find valuable resources within mathematical domains.

In this initial version, the SearchOnMath function retrieves the top 5 results from its web index. To enhance its functionality in the near future, we plan to incorporate additional parameters, such as:
Allowing users to set a different number of results per request, providing more flexibility in the amount of information displayed.
Implementing a pagination functionality, enabling users to navigate through search results more easily.
Introducing filters that allow users to refine their search by specific domains or sources, ensuring more targeted and relevant results.
Enabling the scientific version of SearchOnMath, which will allow searching all arXiv preprints, thus considerably expanding the range of contents available for search.
This version returns results from the following domains:

License Information