Error, (in testeq) invalid arguments - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.

Online Help

Home : Support : Online Help : Error, (in testeq) invalid arguments

Error, (in ...) invalid arguments

 

Description

Examples

Description

This error occurs when an argument of an incorrect type is passed to a command. The type of arguments accepted by Maple commands are listed in the Calling Sequence and Parameters sections in the help page for the command. You can use the type command to verify whether an argument is of the correct type required by the command.

Examples

Example 1

One common way this error can occur is if you try to use a name as a variable, but earlier that name was assigned a value.

(2.1)

Error, (in fsolve) invalid arguments

Solution:
Unassign .

(2.2)

(2.3)

Example 2

In the following example, the equation is assigned to the name, which is passed as an argument to the int command. As indicated on the int/details help page, int accepts only an algebraic expression or operator as a first argument in all of the listed calling sequences. Thus, passing an equation to int results in an error.

(2.4)

(2.5)

(2.6)

(2.7)

(2.8)

Error, (in int) invalid arguments

(2.9)

Solution:

Assigning the algebraic expression instead of the equation corrects the error.

(2.10)

(2.11)

(2.12)

(2.13)

(2.14)

(2.15)

(2.16)

Example 3

In the following example, the error that generates the error message is more subtle. The calling sequences of dsolve, as listed on the dsolve only an ordinary differential equation or a set or list of differential equations. In this example, a set of a set of equations is passed to dsolve instead of a set of equations.

(2.17)

(2.18)

Error, (in dsolve) invalid arguments; expected an equation, or a set or list of them, received: {{diff(diff(f1(x), x), x)-f1(x)+f2(x) = 0, diff(diff(f4(x), x), x)+f3(x)-f4(x) = 0, diff(diff(f2(x), x), x)-2*f2(x)+f3(x)+f1(x) = 0, diff(diff(f3(x), x), x)-2*f3(x)+f4(x)+f2(x) = 0}}

(2.19)

Solution:

One way to correct the above error is to remove the brackets around the sequence of differential equations assigned to

(2.20)

(2.21)

(2.22)

See Also

dsolve

int/details

set

type

 


Download Help Document