GetCommand - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.

Online Help

NaturalLanguage

  

GetCommand

  

ask a large language model to find a Maple command

 

Calling Sequence

Parameters

Description

Examples

References

Compatibility

Calling Sequence

GetCommand(s)

GetCommand(s, mo)

Parameters

s

-

string, query to send to a large language model.

mo

-

(optional) option of the form model=m, where m is GPT4o, O1Mini, O3Mini, or default.

Description

• 

The GetCommand command sends the string query to a large language model and asks it to return a Maple command. This result is returned as a mathematical expression.

• 

Maple can interface with OpenAI's GPT-4o, o1-mini, and o3-mini models. You can select these by using the options model=GPT4o; model=O1Mini; and model=O3Mini, respectively. By default, or when explicitly selected with the model=default option, a Maplesoft server chooses an appropriate model. (At the time of release of Maple 2025, this was the o3-mini model.) Note that OpenAI may deprecate and disable models, so the set of models supported may change in the future.

  

Note: Large language models often generate inaccurate statements. Please keep this in mind: this is not technology for building a bridge with.

Examples

withNaturalLanguage:

GetCommandWhat's the command for numerical equation solving?

fsolveequation,variable

(1)

GetCommandHow do I generate uniformly random integers?

r := rand(1..n)();

(2)

GetCommandTell me how to find the maximum of a function,model=GPT4o

maximizef,x=a..b

(3)

GetCommandHow do I solve a differential equation numerically?,model=O1Mini

dsolveⅆⅆxyx=fx,yx,yx0=y0,yx,numeric

(4)

References

  

The OpenAI website.

Compatibility

• 

The NaturalLanguage:-GetCommand command was introduced in Maple 2024.

• 

For more information on Maple 2024 changes, see Updates in Maple 2024.

• 

The NaturalLanguage:-GetCommand command was updated in Maple 2025.


Download Help Document