Error, (in ...) invalid arguments
|
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
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.1) |
>
|
|
| (2.2) |
>
|
|
| (2.3) |
>
|
|
| (2.4) |
>
|
|
| (2.5) |
>
|
|
>
|
|
| (2.6) |
Solution:
Assigning the algebraic expression instead of the equation corrects the error.
>
|
|
>
|
|
| (2.7) |
>
|
|
| (2.8) |
>
|
|
| (2.9) |
>
|
|
| (2.10) |
>
|
|
| (2.11) |
>
|
|
| (2.12) |
>
|
|
| (2.13) |
Example 2
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.14) |
>
|
|
| (2.15) |
>
|
|
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.16) |
Solution:
One way to correct the above error is to remove the brackets around the sequence of differential equations assigned to
>
|
|
| (2.17) |
>
|
|
| (2.18) |
>
|
|
| (2.19) |
|
|
Download Help Document
Was this information helpful?