If I try this, here is what I get:
sage: var('a')
a
sage: integral(cos(2*x)/(x^2+a^2),x,-Infinity,+Infinity)
ERROR: An unexpected error occurred while tokenizing input
...
TypeError: Computation failed since Maxima requested additional
constraints (try the command 'assume(a>0)' before integral or limit
evaluation, for example):
Is a positive, negative, or zero?
Ok, let's do this
sage: assume(a>0)
sage: integral(cos(2*x)/(x^2+a^2),x,-Infinity,+Infinity)
pi*e^(-2*a)/a
Is it what you expect?
On Sep 17, 10:25 pm, sps <[email protected]> wrote:
> I want to calculate
>
> integral(cos(2x)/(x^2+a^2),x,-Infinity,+Infinity)
>
> but Sage return me an error message.
>
> What I have to digit
>
> Thank you
--
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org