GetCommand - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.
Our website is currently undergoing maintenance, which may result in occasional errors while browsing. We apologize for any inconvenience this may cause and are working swiftly to restore full functionality. Thank you for your patience.

Online Help

All Products    Maple    MapleSim


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 ChatGPT or GPT4.

Description

• 

The GetCommand command sends the string query to a large language model and asks it to return a Maple command as MathML. This is then interpreted by Maple's MathML:-Import command. The result is returned as a mathematical expression.

• 

Maple can interface with OpenAI's GPT-4 and ChatGPT models. The default model is GPT-4; you can select ChatGPT by using the model=ChatGPT option, or force use of the GPT-4 model by using the model=GPT4 option. 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 uniform random numbers?

RandomTools:−Generatelistrealrange0,1

(2)

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

solveⅆⅆxfx=0,x

(3)

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

dsolveeq,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.