Mathematics Stack Exchange is a question and answer site for people studying math at any level and professionals in related fields. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

So I downloaded sample (Download Help Document) but I can not compile it - (last line fais with:

The use statement, if used carefully, can make arithmetic operations in the field much more natural.
y := G16:-`*`(a, G16:-`+`(a, x)); 1; z := G16:-`+`(a, G16:-`*`(-1, y)); 1; G16:-`+`(G16:-`^`(z, 3), G16:-`^`(y, 2));
                       /     2    \      
                       \alpha  + 1/ mod 2
Error, (in *) modp1: invalid arguments to function Multiply
Error, (in ^) modp1: invalid arguments to function Powmod

Shall my maple (15) work like this and this is a docs bug? And if yes how to fix it, or is it real maple (as application) bug?

share|cite|improve this question
up vote 3 down vote accepted

It's a bug in the automatic conversion of the original 1D Maple Notation Example source to 2D Math input.

To see it in 1D Maple Notation, click the graphical icon in the Help viewer which lies farthest right on the menubar. (If you have balloon/hover-over tips enabled, then hovering the mouse pointer over that icon should reveal the pop-up message, "Display Examples with 2D Math". It's a toggle mechanism, and can be used to repeatedly switch some Examples to and from 2D/ID input.

As 1D Maple notation (after toggling in the Help window), it should appear as the plantext red code,

use G16 in
  y := a * ( a + x );
  z := a - y;
  z^3 + y^2
end use;

That should execute fine, if entered.

The bit that is being misconverted to 2D Math input form is

z := a - y;

which is becoming (in the use context),

z := G16:-`+`(a, G16:-`*`(-1, y));

which causes that first error message. It should probably be better converted, internally, as,

z := G16:-`-`(a, y);

I will submit a bug report on the Maple users forum mapleprimes.

share|cite|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.