Error, (in int) wrong number (or type) of arguments: wrong type of integrand passed to indefinite integration. - Maple Help

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : Error, (in int) wrong number (or type) of arguments: wrong type of integrand passed to indefinite integration.

Error, (in int) wrong number (or type) of arguments: wrong type of integrand passed to indefinite integration

 

Description

Examples

Description

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.

Examples

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

(2.1)

 

Example 2

In this example, the functional operator passed as the first argument will cause an error.

intxx2,x

Error, (in int) wrong number (or type) of arguments: wrong type of integrand passed to indefinite integration.

 

Solution 1:

Use the expression x2 for the first argument instead.

intx2,x

x33

(2.2)

Solution 2:

Instead, define the function f, then use fx as the first argument.

fxx2

fxx2

(2.3)

intfx,x

x33

(2.4)

Example 3

The same error can occur when using the 2-D math integral notation:

∫xx2ⅆx

Error, (in int) wrong number (or type) of arguments: wrong type of integrand passed to indefinite integration.

 

Solution:

As in the previous example, you can either use an expression or define the function f, then use fx as the first argument.

fxx2

fxx2

(2.5)

∫fxⅆx

x33

(2.6)

See Also

int

int/details

type/algebraic