Error, invalid input: Require uses a 2nd argument, y (of type integer), which is missing - 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 : Error, invalid input: Require uses a 2nd argument, y (of type integer), which is missing

Error, invalid input: ... uses a ... argument, ..., which is missing

 

Description

Examples

Description

This error message occurs when one or more arguments expected by the procedure are missing. Refer to the help page corresponding to your procedure for the correct calling sequence.

Examples

Example 1

In the following example, it is unclear whether the argument i represents the summand or the index.

sumi

Error, invalid input: sum uses a 2nd argument, k, which is missing

 

Solution:

For this example, assume the intention was for the summand and index to both be i.  You must explicitly state both arguments for sum.

sumi,i

12i212i

(2.1)

Example 2

In the following example, the polynomial to be factored has not been supplied to the factor command.

factor

Error, invalid input: factor uses a 1st argument, xFP, which is missing

Solution:

Include polynomial to be factored.

factor6 x2+18x24

6x+4x1

(2.2)

Example 3

In this example, the procedure Adder has been defined with two parameters, a and b.

Adderprocainteger ,b a+b end proc;

Adder:=proca::integer,ba+bend proc

(2.3)

Here, the second argument is missing.

Adder3

Error, invalid input: Adder uses a 2nd argument, b, which is missing

Solution:

Add the missing second argument.

Adder3,2.5

5.5

(2.4)

 

Example 4

Without the second argument, it is unclear which variable is supposed to be eliminated

eliminatex2+y21,x3y2x+xy3

Error, invalid input: eliminate uses a 2nd argument, vars (of type {name, ({set, list})(name)}), which is missing

Solution:

Add the missing second argument.

eliminatex2+y21,x3y2x+xy3,x

x=32y2+y+1,7y4+4y6+6y34y5+4y22y+8

(2.5)

See Also

eval

map

sum

factor

eliminate