WOLFRAM

Enable JavaScript to interact with content and submit forms on Wolfram websites. Learn how
Wolfram Language & System Documentation Center
Wolfram Language Home Page »

"MathFormula" (Interpreter Type)

Mathematical formula in natural language.

Details

Allowed Forms

  • Any free-form mathematical equality or inequality:
  • 3 x^2 - x + 2 == 0 polynomial equations
    cos(y) = sqrt(3)/2 equations involving any mathematical function
    2^45 > 15! inequalities

Restriction Specifications

Interpretation

Examples

Basic Examples  (7)

Interpret mathematical formulas:

The resulting formula evaluates, which may lead to a Boolean result:

Restrict to a list of choices:

By default, all symbols are allowed. Restrict to a list of allowed symbols:

By default, new symbols are created in $Context , but a custom context can be specified:

Specify contexts for the allowed and output symbols:

Prevent the creation of any new symbol:

See Also

Interpreter   SemanticImport   Restricted   Failure   Equal   Greater   GreaterEqual   Less   LessEqual

Interpreter Types: HeldMathFormula   InactiveMathFormula   MathExpression   Expression   WolframLanguageSymbol   HeldMathExpression   InactiveMathExpression   HeldExpression   InactiveExpression   SemanticExpression   HeldSemanticExpression   InactiveSemanticExpression   ComputedWolframLanguageSymbol

History

Introduced in 2014 (10.0)

Top [フレーム]

AltStyle によって変換されたページ (->オリジナル) /