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 20how many seconds to allow for the API call

Examples

open allclose all

Basic Examples  (2)

Convert a plaintext string into the corresponding entity:

Compute the ratio of two stock prices:

Scope  (7)

Interpret quantities:

Interpret times:

Compute a date:

Import a plaintext mathematical formula:

Find an image:

Create colors:

Wrap the result of interpretation in HoldComplete, preventing evaluation:

Options  (2)

InputAssumptions  (1)

Specify that m should be interpreted as minutes:

By default it would be interpreted as meters:

TimeConstraint  (1)

Limit the time spent on evaluation to a second:

Note that the limit is only on the interpretation, not a time subsequently spent evaluating the result:

Applications  (1)

Show an area of the sky around the star Betelgeuse:

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:

Wolfram Research (2024), FreeformEvaluate, Wolfram Language function, https://reference.wolfram.com/language/ref/FreeformEvaluate.html.

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_2024_freeformevaluate, author="Wolfram Research", title="{FreeformEvaluate}", year="2024", howpublished="\url{https://reference.wolfram.com/language/ref/FreeformEvaluate.html}", note=[Accessed: 18-November-2024 ]}

BibLaTeX

@online{reference.wolfram_2024_freeformevaluate, organization={Wolfram Research}, title={FreeformEvaluate}, year={2024}, url={https://reference.wolfram.com/language/ref/FreeformEvaluate.html}, note=[Accessed: 18-November-2024 ]}