You must have the optional commercial Maple interpreter installed
and available as the command maple in your PATH in
order to use this interface. You do not have to install any
optional Sage packages.

Type maple.[tab] for a list of all the functions
available from your Maple install. Type
maple.[tab]? for Maple’s help about a given
function. Type maple(...) to create a new Maple
object, and maple.eval(...) to run a string using
Maple (and get the result back as a string).

The normal command will always reduce a rational function to the
lowest terms. The factor command will factor a polynomial with
rational coefficients into irreducible factors over the ring of
integers. So for example,

Another important feature of maple is its online help. We can
access this through sage as well. After reading the description of
the command, you can press q to immediately get back to your
original prompt.

Incidentally you can always get into a maple console by the
command

sage: maple.console()# not testedsage: !maple # not tested

Note that the above two commands are slightly different, and the
first is preferred.

For example, for help on the maple command fibonacci, we type

sage: maple.help('fibonacci')# not tested, since it uses a pager

We see there are two choices. Type

sage: maple.help('combinat, fibonacci')# not tested, since it uses a pager

We now see how the Maple command fibonacci works under the
combinatorics package. Try typing in

sage: maple.fibonacci(10)# optional - maplefibonacci(10)

You will get fibonacci(10) as output since Maple has not loaded the
combinatorics package yet. To rectify this type

sage: maple('combinat[fibonacci]')(10)# optional - maple55

instead.

If you want to load the combinatorics package for future
calculations, in Sage this can be done as

sage: maple.with_package('combinat')# optional - maple

or

sage: maple.load('combinat')# optional - maple

Now if we type maple.fibonacci(10), we get the
correct output:

sage: maple.fibonacci(10)# optional - maple55

Some common maple packages include combinat,
linalg, and numtheory. To produce
the first 19 Fibonacci numbers, use the sequence command.

Type maple.[tab] for a list of all the functions
available from your Maple install. Type
maple.[tab]? for Maple’s help about a given
function. Type maple(...) to create a new Maple
object, and maple.eval(...) to run a string using
Maple (and get the result back as a string).