8
$\begingroup$

Bug introduced in 10.0 and fixed in 10.2.0


On version 10.0 for arm:

  Residue[LogisticSigmoid[z],{z,I Pi}]

gives 0 not 1.

Can anyone reproduce this?

$\endgroup$
6
  • $\begingroup$ As noted in its tag wiki, please do not give questions the bugs tag until your results have been community-vetted as an actual bug. $\endgroup$ May 21, 2015 at 12:14
  • $\begingroup$ Anyway, for diagnostics: what happens if you feed Residue[] the result of FunctionExpand[LogisticSigmoid[z]]? $\endgroup$ May 21, 2015 at 12:17
  • $\begingroup$ I get 1, which is correct. $\endgroup$
    – pdmclean
    May 21, 2015 at 12:52
  • 2
    $\begingroup$ Can confirm in 10.1, Residue[LogisticSigmoid[z],{z,I Pi}] gives 0 while Residue[FunctionExpand[LogisticSigmoid[z]], {z, I Pi}] gives 1. What's going on? $\endgroup$
    – Histograms
    May 21, 2015 at 14:59
  • 4
    $\begingroup$ Reported as a bug internally. Thanks! $\endgroup$
    – ilian
    May 21, 2015 at 15:16

1 Answer 1

4
$\begingroup$

Now fixed in version 10.2.

In[1]:= Residue[LogisticSigmoid[z], {z, I Pi}]                                  

Out[1]= 1

In[2]:= Residue[1/(1 + Exp[-z]), {z, I Pi}]                                     

Out[2]= 1

In[3]:= Coefficient[Series[1/(1 + Exp[-z]), {z, I Pi, 0}], 1/(z - I Pi)]        

Out[3]= 1
$\endgroup$
2
  • 3
    $\begingroup$ ilian, if I haven't already done so: thanks for all the work you and your team put into this program we all like. :) $\endgroup$ Jul 14, 2015 at 17:34
  • $\begingroup$ @J. M. Thank you very much for the kind words! $\endgroup$
    – ilian
    Jul 14, 2015 at 18:01

Your Answer

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

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