Group Abstract Group Abstract

Message Boards Message Boards

0
|
11K Views
|
15 Replies
|
6 Total Likes
View groups...
Share
Share this post:

Error in Mathematica computation

Posted 12 years ago

Hello,

In mathematica,

I tried to find

Integral of ln(1 + x)/(x^2 + 1) from 0 to 1

The answer is CLEARLY ln(2)pi/8

Mathematica computes the answer to be:

1/4 ln ([Pi] + Log[4])

Which is incorrect. Why is Mathematica computing this error??

15 Replies

A shame I can only give you one vote for this... I think that your "courtesy rules" should go on

http://community.wolfram.com/groups/-/m/t/270507

Cheers,

Marco

POSTED BY: Marco Thiel
Posted 12 years ago

Capitalize log - should be Log.

POSTED BY: Douglas Kubler
Posted 12 years ago

Nice! Thanks

Notebook attached.

Attachments:
POSTED BY: S M Blinder

Need Log

POSTED BY: S M Blinder
Posted 12 years ago
ln[x+1]/(x^2+1)

Is what I enter, I cant type the code for this, but this is what I do next.enter image description here

Then I press the definite x integral

That gives the incorrect answer.

f[x_] := Log[1+x]/(x^2+1);
Integrate[ f[x], {x, 0, 1}]
POSTED BY: Isaac Abraham
POSTED BY: Daniel Lichtblau
Posted 12 years ago

Hi,

But how can this work if I want to FIRST input the function, and use the drop down integral option?

The correct syntax is Integrate[ Log[1+x]/(x^2+1), {x, 0, 1}]. The only problem here was that "Log" is the correct form of "ln". You may have received the incorrect answers based on some prior definitions. It is mostly a good idea to clear memory before starting fresh computations, with Clear["Global*"]or at leastClearAll[variablename]` if the variable name is known.

POSTED BY: Isaac Abraham
Posted 12 years ago

Hi,

Its still not working,

enter image description here

POSTED BY: Daniel Lichtblau
Posted 12 years ago
?ln
POSTED BY: Douglas Kubler
Posted 12 years ago

That is very weird. This is what I did.

I first just typed ln(x+1)/(x^2 +1) then it gave me a definite integral option....

EDIT: natural log is the same as your log in Mathematica, then what is the issue?

That is interesting. I typed in

Integrate[Log[(1 + x)]/(x^2 + 1), {x, 0, 1}]

which gives

enter image description here

which is as you state: CLEARLY correct. I tried a while and did not find what could make Mathematica produce the output you report.

M.

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