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.
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 all close allBasic Examples (2)
Scope (7)
[5 m]%//FullForm[5pm][next Easter]Import a plaintext mathematical formula:
[sin^2(x+y)][picture of george washington][sky blue][rgb 200 100 50]Wrap the result of interpretation in HoldComplete, preventing evaluation:
FreeformEvaluate["sin pi/4", HoldComplete]Options (2)
InputAssumptions (1)
TimeConstraint (1)
Limit the time spent on evaluation to a second:
FreeformEvaluate["integrate x^2/sqrt(1-x^6) from -1 to 1", HoldForm, TimeConstraint -> 1]//AbsoluteTimingNote that the limit is only on the interpretation, not a time subsequently spent evaluating the result:
FreeformEvaluate["integrate x^2/sqrt(1-x^6) from -1 to 1", TimeConstraint -> 1]//AbsoluteTimingApplications (1)
Properties & Relations (3)
Insert ▶ Inline Free-form Input interprets the query asynchronously:
Hold[["two plus two"]]Any subsequent computation happens during the main evaluation loop:
%//ReleaseHold//AbsoluteTimingFreeformEvaluate performs both interpretation and computation during the main evaluation loop:
Hold[[two plus two]]%//ReleaseHold//AbsoluteTiming=[query] always returns the default interpretation for query:
[hebrew]//InputFormDifferent interpretations can be accessed interactively with Insert ▶ Inline Free-form Input (
):
{["hebrew"], ["hebrew"], ["hebrew"], ["hebrew"]}//InputFormThey can be accessed programmatically with the InputAssumptions option:
% === Map[FreeformEvaluate["hebrew", InputAssumptions -> #]&, {{"{\"C\", \"hebrew\"} -> {\"Language\"}"}, {"{\"C\", \"hebrew\"} -> {\"WritingScript\"}"},
{"{\"C\", \"hebrew\"} -> {\"Alphabet\"}"}, {"{\"C\", \"hebrew\"} -> {\"Word\"}"}}]FreeformEvaluate and SemanticInterpretation both give WolframLanuage translations of text:
{[sqrt 2 to 5 digits], SemanticInterpretation["sqrt 2 to 5 digits"]}This is a computation that can be represented exactly in Wolfram Language:
WolframAlpha["sqrt 2 to 5 digits", "WolframParse"]The following query produces an answer for FreeformEvaluate but not SemanticInterpretation:
{[what is the speed of an unladen swallow?], SemanticInterpretation["what is the speed of an unladen swallow?"]}That is because the question cannot be represented exactly in Wolfram Language:
WolframAlpha["what is the speed of an unladen swallow?", "WolframParse"]However, FreeformEvaluate will scan the Wolfram Knowledgebase for possible answers:
WolframAlpha["what is the speed of an unladen swallow?", {{"Result", 1}, "ComputableData"}]Possible Issues (1)
The operator form of FreeformEvaluate cannot contain a right bracket:
=[]]Queries involving right brackets can be typed using the FullForm:
FreeformEvaluate["]"]See Also
History
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
BibTeX
@misc{reference.wolfram_2026_freeformevaluate, author="Wolfram Research", title="{FreeformEvaluate}", year="2024", howpublished="\url{https://reference.wolfram.com/language/ref/FreeformEvaluate.html}", note=[Accessed: 12-June-2026]}
BibLaTeX
@online{reference.wolfram_2026_freeformevaluate, organization={Wolfram Research}, title={FreeformEvaluate}, year={2024}, url={https://reference.wolfram.com/language/ref/FreeformEvaluate.html}, note=[Accessed: 12-June-2026]}