Error, (in int) wrong number (or type) of arguments: wrong type of integrand passed to indefinite integration
Description
Examples
The first argument to int for indefinite integration must be of type algebraic. In other words, it must be an expression and cannot be any of the following: an operator, procedure, equation, set, list, Array, or table.
Example 1
The command int cannot take an equation as the first argument.
intx=1,x
Error, (in int) wrong number (or type) of arguments: wrong type of integrand passed to indefinite integration.
Solution:
Instead, try the following
int1,x
x
Example 2
In this example, the functional operator passed as the first argument will cause an error.
intx→x2,x
Solution 1:
Use the expression x2 for the first argument instead.
intx2,x
x33
Solution 2:
Instead, define the function f, then use f⁡x as the first argument.
f≔x→x2
f≔x↦x2
intfx,x
Example 3
The same error can occur when using the 2-D math integral notation:
∫x→x2ⅆx
As in the previous example, you can either use an expression or define the function f, then use f⁡x as the first argument.
∫f⁡xⅆx
See Also
int
int/details
type/algebraic
Download Help Document