Index of every page on this site: llms.txt
TypeScript
Schema Since 3.3.0

MathSolver Schema

Schema.org MathSolver

  • Type: defineMathSolver(input?: MathSolver)
    Describes a site that accepts math expressions and returns solutions.

Example

defineMathSolver({
  '@type': ['MathSolver', 'LearningResource'],
  'learningResourceType': 'Math Solver',
  'potentialAction': {
    '@type': 'SolveMathAction',
    'target': '/solve?q={math_expression_string}',
    'mathExpression-input': 'required name=math_expression_string',
    'eduQuestionType': 'Polynomial Equation',
  },
  'url': '/',
  'usageInfo': '/privacy',
})

Google requires potentialAction, url, usageInfo, potentialAction.target, and the annotated mathExpression-input property. Google also requires learningResourceType, and its examples add the LearningResource type. Unhead adds both.

Defaults and resolves

  • @type includes MathSolver and LearningResource.
  • learningResourceType defaults to Math Solver.
  • @id defaults to ${canonicalUrl}#math-solver.
  • Relative url, usageInfo, and action targets resolve against the configured host.
  • inLanguage inherits from Schema.org params.
Did this page help you?