Overview of the NaturalLanguage Package
Description
List of NaturalLanguage Package Commands
Examples
References
Compatibility
The NaturalLanguage package offers an interface to explore using large language models such as ChatGPT for processing natural language in Maple.
Before using this package, you need to agree to the terms of use.
To agree to the terms of use:
In the Maple Standard Interface, on the left side of the Maple window, click the AI Formula Assistant tab.
Click AI Terms of Use.
Read and accept the terms and click Apply Globally. Now the functionality in both the AI Formula Assistant and the NaturalLanguage package is enabled.
Note: Large language models often generate inaccurate statements. Please keep this in mind: this is not technology for building a bridge with.
The package contains the following commands.
Explain
ask a large language model to explain a concept
GetCommand
ask a large language model to find a Maple command
GetMath
ask a large language model a question to be answered with math
Query
ask a large language model to answer a question in English and math
RawQuery
send a query directly to a large language model
Before using any of the commands in this package, you need to review and agree to the AI Terms of Use. You can do so in Maple's Standard GUI, in two ways:
Open the Options dialog using the menus (the linked help page describes how).
Ensure the General tab is active.
Select the button labeled AI: Terms of Use.
Read and accept the terms.
Alternatively:
Open the pane on the left hand side of the main window, if it is closed.
Select the AI Formula Assistant tab.
Select the button labeled AI Terms of Use.
with⁡NaturalLanguage
Explain,GetCommand,GetMath,Query,RawQuery
If you have not agreed to the AI Terms of Use, you will see an error message when you use the NaturalLanguage package. (The error message varies according to the platform and the interface you use, so it may look slightly different when you receive it.)
RawQuery⁡plot sin(x) in maple
Error, (in NaturalLanguage:-RawQuery) before using the NaturalLanguage package, you need to review and agree to the AI Terms of Use. You can do so by opening the Options dialog (Tools > Options > General tab) and selecting AI Terms of Use.
Once you agree to the AI Terms of Use, this error does not occur.
To plot `sin(x)` in Maple, use the following command: `plot(sin(x), x = -Pi .. Pi);` Enter this command in your Maple IDE and run. This will plot a graph of the sine function from x = -Pi to Pi. If you want to change the range, you can modify the values after `x =`.
Query⁡What is Pythagoras' Theorem?
Pythagoras' Theorem states that in a right-angled triangle, the square of the length of the hypotenuse (the side opposite the right angle) is equal to the sum of the squares of the lengths of the other two sides. This can be written as: a² + b² = c² where c represents the length of the hypotenuse, and a and b represent the lengths of the other two sides. this formula can be represented as:
a2+b2=c2
GetMath⁡What is the resistance of five resistors connected in parallel?
R_total=11R1+1R2+1R3+1R4+1R5
GetCommand⁡What's the command for numerical equation solving?
fsolve⁡equation,variable
Explain⁡x2+y2=1
This is the equation of a circle with radius 1 centered at the origin (0,0) in the Cartesian coordinate system.
The OpenAI website.
The NaturalLanguage package was introduced in Maple 2024.
For more information on Maple 2024 changes, see Updates in Maple 2024.
Download Help Document