6
$\begingroup$

Bug introduced in version 12.2 or earlier. Fixed in 13.2.0 or earlier


If I run

expr = (CF G[0, zb])/(1 - zb) + (CF zb^2 G[0, zb])/(1 - zb) + (2 CF G[1, zb])/(1 - zb) + (2 CF zb^2 G[1, zb])/(1 - zb);
Coefficient[expr, zb, -1] 

in Mathematica 12.1, it returns

-((CF G[0, zb])/(-1 + zb)) - (2 CF G[1, zb])/(-1 + zb)

Shouldn't it return 0 since there are no terms in the form 1/zb in expr ?

$\endgroup$
1
  • 6
    $\begingroup$ Definitely a bug. Also remaining in 12.2. It appears to be fixed in the upcoming release. $\endgroup$ May 12, 2021 at 2:09

1 Answer 1

1
$\begingroup$
expr = (CF G[0, zb])/(1 - zb) + (CF zb^2 G[0, zb])/(1 - 
      zb) + (2 CF G[1, zb])/(1 - zb) + (2 CF zb^2 G[1, zb])/(1 - zb);
Coefficient[expr, zb, -1]

0

Screenshot

screen

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.