Message Boards Message Boards


Series with ArcTan gives wrong answer with Wolfram Language!

Posted 1 month ago
2 Replies
2 Total Likes

Hi! Recently, I have found a very bad problem with Wolfram Language. It gives the wrong answer for a quite simple expression!

When calculating

Series[ArcTan[A + 1/x], {x, 0, 2}, Assumptions -> A > 0 && x > 0]

Wolfram Language returns the wrong answer (tested in Wolfram cloud and in Mathematica

enter image description here

I am absolutely sure that the correct answer should be

enter image description here

(I have a Ph.D. degree and teach for many years.)

There is a plot of all three functions to demonstrate the issue enter image description here

How to get rid of the problem?

(Attached the notebook with corresponding calculations.)

UPD It is a bug. More obvious issue

enter image description here

UPD#2 Working around.

The result in v10.3 is correct.

The result in v11.3 is incorrect.

The corresponding post is in Mathematica Stackexchange.

2 Replies

I tested the example

Series[ArcTan[A + 1/x], {x, 0, 2},  Assumptions -> A > 0 && x > 0]

on two versions of Mathematica:
1) with Mathematica : I get answer Pi/2 - x + A x²+...
2) with Mathematica 12.1.1 : I get the answer Pi/2 - x + (A +A² Pi/4) x²+...
So I reproduce your observation. I tested the old version on Win Xp (!) and the new on Win7 each time from a fresh Kernel.



Please add links to/from MSE x-post.

Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
or Discard

Group Abstract Group Abstract