Accessing Maple Functions

You can access Maple functions that are not supported directly in Scientific Notebook.

$\blacktriangleright$ To access the Maple function pivot and to name it P

1.
From the Define submenu, choose Define Maple Name.

2.
Respond to the dialog box as follows.

3.
Check OK.

This procedure defines in Scientific Notebook a function P(x, i, j) that performs a pivot on the i, j entry of a matrix x.


\begin{example}
Define $x=\left[
\begin{array}{cccc}
-85 & -55 & -37 & -35 \...
...{50} & -\frac{3239}{25}
\end{array}
\right]
\end{displaymath}
\end{example}

An extensive Maple library is included with Scientific Notebook. Here is a short list from the many examples that are available using the Define Maple Name dialog.

Maple Name Sample SNBBookName Name Maple Packages Needed
UserInputHeaviside(x) H(x) none
UserInputnextprime(x) p(n) none
UserInputisprime(n) q(n) none
UserInputphi(n) $\varphi$(n) numtheory
UserInputlegendre(a,b) L(a, b) numtheory
UserInputgalois(f) g(f ) none
UserInputinterp(x,y,v) P(x, y, v) none
UserInputPsi(x) ψ(x) none
UserInputresultant(a,b,x) r(a, b, x) none
UserInputfinduni(x,F) u(x, F) grobner
UserInputgbasis(F,X) G(F, X) grobner

Scientific Notebook supports multiple notations for vectors, including row or column matrices, or n-tuples enclosed by either parentheses or square brackets. However, to work with a Maple-defined function, you must use appropriate Maple syntax for the function arguments. For example, gbasis from the Grobner library accepts a list entered with square brackets, such as [a, b, c, d], or a set entered with curly braces, such as {x2 +3x, 5xy}UserInput.


\begin{example}
Use \textsf{Define + Define Maple Name} to define a \textsl{Sci...
...
Z+X,Y^{2}+Z^{2},-1+Z^{3}\right]
\end{array}
\end{displaymath}
\end{example}

Click Generating Large PrimesDM12-2.tex#Large primes for another example. In that section, the Maple function nextprime is given a Scientific Notebook name.


Maple functions defined in this way can be saved with and restored to a document with Save Definitions and Restore Definitions as described previously for Scientific Notebook-defined functions (click hereDM5-3.tex#Saving definitions). These functions, with their Maple name correspondences, appear in the Show Definitions window but they are not removed by Clear Definitions. To remove a Maple function, select the Scientific Notebook name for the function and choose Maple + Define + Undefine.

The guidelines for valid function and expression namesDM5-1.tex#Function name apply to the Scientific Notebook names that can be entered in the Define Maple Name dialog box. You can give a multicharacter name to a Maple function as follows. With the Define Maple Name dialog box open and the insertion point in the Scientific WorkPlace Name box, click the Math Name icon itbpF0.3009in0.3009in0.0701infunction.wmf, enter the desired function name, and click OK.