NaturalLanguage
GetMath
ask a large language model a question to be answered with math
Calling Sequence
Parameters
Description
Examples
References
Compatibility
GetMath(s)
GetMath(s, mo)
s
-
string, query to send to a large language model.
mo
(optional) option of the form model=m, where m is ChatGPT or GPT4.
The GetMath command sends the string query to a large language model. 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.
with⁡NaturalLanguage:
GetMath⁡What is the resistance of five resistors connected in parallel?
R_total=11R1+1R2+1R3+1R4+1R5
GetMath⁡What is the energy stored in a flywheel
E=I⁢w22
The OpenAI website.
The NaturalLanguage:-GetMath command was introduced in Maple 2024.
For more information on Maple 2024 changes, see Updates in Maple 2024.
Download Help Document