SymbolicNumericIntegration.jl icon indicating copy to clipboard operation
SymbolicNumericIntegration.jl copied to clipboard

Problems integrating complex functions

Open Navascues1980 opened this issue 1 year ago • 0 comments

Hi all,

Whenever I try to integrate a complex function, the package returns the error message:

ERROR: MethodError: ^(::Complex{Num}, ::Num) is ambiguous.

This happens, e.g., when I input:

integrate(cos(x)+2*im)

This is a bug, isn't it? Integrals such as

integrate(cos(x)+2)

do not give me any trouble.

Below you can find a full code that does not run.

Best regards,

Miguel

using Symbolics using SymbolicNumericIntegration

@variables x integrate(cos(x) +im)

Navascues1980 avatar Jan 16 '24 15:01 Navascues1980