changeset 14197:ce731bb6a191 stable

besseli: don't change sign of result for negative integer orders * lo-specfun.cc (zbesi): Omit sign change for negative integer orders.
author John W. Eaton <jwe@octave.org>
date Thu, 12 Jan 2012 13:00:46 -0500
parents 35ce1eab7400
children 39c0e0069895
files liboctave/lo-specfun.cc
diffstat 1 files changed, 0 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/liboctave/lo-specfun.cc	Thu Jan 12 12:10:33 2012 -0500
+++ b/liboctave/lo-specfun.cc	Thu Jan 12 13:00:46 2012 -0500
@@ -857,8 +857,6 @@
       // zbesi can overflow as z->0, and cause troubles for generic case below
       alpha = -alpha;
       Complex tmp = zbesi (z, alpha, kode, ierr);
-      if ((static_cast <long> (alpha)) & 1)
-        tmp = - tmp;
       retval = bessel_return_value (tmp, ierr);
     }
   else