GetMath - Maple Help

NaturalLanguage

 GetMath
 ask a large language model a question to be answered with math

 Calling Sequence GetMath($s$) GetMath($s$, $\mathrm{mo}$)

Parameters

 $s$ - string, query to send to a large language model. $\mathrm{mo}$ - (optional) option of the form $\mathrm{model}=m$, where $m$ is $\mathrm{ChatGPT}$ or $\mathrm{GPT4}$.

Description

 • 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 $\mathrm{model}=\mathrm{ChatGPT}$ option, or force use of the GPT-4 model by using the $\mathrm{model}=\mathrm{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

 > $\mathrm{with}\left(\mathrm{NaturalLanguage}\right):$
 > $\mathrm{GetMath}\left("What is the resistance of five resistors connected in parallel?"\right)$
 ${\mathrm{R_total}}{=}\frac{{1}}{\frac{{1}}{{\mathrm{R1}}}{+}\frac{{1}}{{\mathrm{R2}}}{+}\frac{{1}}{{\mathrm{R3}}}{+}\frac{{1}}{{\mathrm{R4}}}{+}\frac{{1}}{{\mathrm{R5}}}}$ (1)
 > $\mathrm{GetMath}\left("What is the energy stored in a flywheel"\right)$
 ${E}{=}\frac{{I}{}{{w}}^{{2}}}{{2}}$ (2)

References

 The OpenAI website.

Compatibility

 • The NaturalLanguage:-GetMath command was introduced in Maple 2024.