Group Abstract Group Abstract

Message Boards Message Boards

0
|
5.7K Views
|
1 Reply
|
0 Total Likes
View groups...
Share
Share this post:
GROUPS:

fullstop in output?

Posted 10 years ago

Hi folks.

NIntegrate[x^2 + 5, {x, 0, 3}] results in "24."

Why is there a fullstop in the ouput? Output from other calculations don't have a fullstop.

Thanks in advance.

POSTED BY: D P

Hi DP,

that is because you use NIntegrate, which integrates numerically, i.e. it takes finite precision in the process. Therefore, Mathematica indicates that this is a numerical result.

If you use Integrate instead:

Integrate[x^2 + 5, {x, 0, 3}]

you get 24 without the fullstop, i.e. "infinite" precision.

Cheers,

Marco

POSTED BY: Marco Thiel
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard