Drexel dragonThe Math ForumDonate to the Math Forum

Search All of the Math Forum:

Views expressed in these public forums are not endorsed by Drexel University or The Math Forum.

Math Forum » Discussions » sci.math.* » sci.math.symbolic.independent

Topic: should CAS resturn infinity for divergent integral or a message that
integral diverges?

Replies: 9   Last Post: Apr 19, 2014 1:49 AM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
Nasser Abbasi

Posts: 6,253
Registered: 2/7/05
should CAS resturn infinity for divergent integral or a message that
integral diverges?

Posted: Mar 11, 2014 9:04 PM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

May be this is an API design preference, or may be
there can be a deep mathematical to prefer one over
the other.

Which you think is the better response in the case
when one asks cas to integrate something that does not
converge over the limit of integration? return infinity,
or issue an error message?

What does your CAS return?

Maple, return infinity:

(* infinity *)

Mathematica: issues a red message with a beep and
return the original integral unevaluated:

Integrate[1/Sqrt[x], {x, 0, Infinity}]
Integrate::idiv: Integral of 1/Sqrt[x] does
not converge on {0,\[Infinity]}. >>
Integrate[1/Sqrt[x], {x, 0, Infinity}]

Matlab mupad, same as Maple:

int( 1/sqrt(x),x,0,inf)
ans =


maxima 12.04: Similar to Mathematica. Gives an error:

defint: integral is divergent.
an error. To debug this try: debugmode(true);



Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2015. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.