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

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : Programming : Packages : NaturalLanguage

Overview of the NaturalLanguage Package

 

Description

List of NaturalLanguage Package Commands

Examples

References

Compatibility

Description

• 

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:

1. 

In the Maple Standard Interface, on the left side of the Maple window, click the AI Formula Assistant tab.

2. 

Click AI Terms of Use.

3. 

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.

List of NaturalLanguage Package Commands

• 

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.

– 

Read and accept the terms.

Examples

withNaturalLanguage

Explain,GetCommand,GetMath,Query,RawQuery

(1)

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.)

RawQueryplot 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.

RawQueryplot sin(x) in maple

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 =`.

(2)

QueryWhat 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

(3)

GetMathWhat is the resistance of five resistors connected in parallel?

R_total=11R1+1R2+1R3+1R4+1R5

(4)

GetCommandWhat's the command for numerical equation solving?

fsolveequation,variable

(5)

Explainx2+y2=1

This is the equation of a circle with radius 1 centered at the origin (0,0) in the Cartesian coordinate system.

(6)

References

  

The OpenAI website.

Compatibility

• 

The NaturalLanguage package was introduced in Maple 2024.

• 

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