Error, invalid input: ... uses a ... argument, ..., which is missing
Description
Examples
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.
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
12⁢i2−12⁢i
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
Include polynomial to be factored.
factor6 x2+18⋅x−24
6⁢x+4⁢x−1
Example 3
In this example, the procedure Adder has been defined with two parameters, a and b.
Adder≔proca∷integer ,b a+b end proc;
Adder:=proca::integer,ba+bend proc
Here, the second argument is missing.
Adder3
Error, invalid input: Adder uses a 2nd argument, b, which is missing
Add the missing second argument.
Adder3,2.5
5.5
Example 4
Without the second argument, it is unclear which variable is supposed to be eliminated
eliminate⁡x2+y2−1,x3−y2⁢x+x⁢y−3
Error, invalid input: eliminate uses a 2nd argument, vars (of type {name, ({set, list})(name)}), which is missing
eliminate⁡x2+y2−1,x3−y2⁢x+x⁢y−3,x
x=3−2⁢y2+y+1,−7⁢y4+4⁢y6+6⁢y3−4⁢y5+4⁢y2−2⁢y+8
See Also
eval
map
sum
eliminate
Download Help Document