FreeformEvaluate
FreeformEvaluate["query"] or =[query]
interprets query using Wolfram|Alpha and computes the result.
FreeformEvaluate["query",h]
interprets query and wraps the result of interpretation in the head h.
Details and Options
- FreeformEvaluate performs the same interpretation steps on its input as Insert ▶ Inline Free-form Input ().
- When multiple interpretations are available for "query", FreeformEvaluate["query"] always uses the default interpretation. »
- The following options can be given:
-
InputAssumptions {} assumptions to include in the API call TimeConstraint 20 how many seconds to allow for the API call
Examples
open allclose allBasic Examples (2)
Scope (7)
Import a plaintext mathematical formula:
Wrap the result of interpretation in HoldComplete, preventing evaluation:
Options (2)
Properties & Relations (3)
Insert ▶ Inline Free-form Input interprets the query asynchronously:
Any subsequent computation happens during the main evaluation loop:
FreeformEvaluate performs both interpretation and computation during the main evaluation loop:
=[query] always returns the default interpretation for query:
Different interpretations can be accessed interactively with Insert ▶ Inline Free-form Input ():
They can be accessed programmatically with the InputAssumptions option:
FreeformEvaluate and SemanticInterpretation both give WolframLanuage translations of text:
This is a computation that can be represented exactly in Wolfram Language:
The following query produces an answer for FreeformEvaluate but not SemanticInterpretation:
That is because the question cannot be represented exactly in Wolfram Language:
However, FreeformEvaluate will scan the Wolfram Knowledgebase for possible answers:
Possible Issues (1)
The operator form of FreeformEvaluate cannot contain a right bracket:
Queries involving right brackets can be typed using the FullForm:
Text
Wolfram Research (2024), FreeformEvaluate, Wolfram Language function, https://reference.wolfram.com/language/ref/FreeformEvaluate.html.
CMS
Wolfram Language. 2024. "FreeformEvaluate." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/FreeformEvaluate.html.
APA
Wolfram Language. (2024). FreeformEvaluate. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/FreeformEvaluate.html