e062523f7734f568b7b19818d25ef737d517e4be,sympy/functions/special/bessel.py,besselj,_eval_nseries,#besselj#Any#Any#Any#Any#,233

Before Change


        from sympy.series.order import Order
        nu, z = self.args

        if z.limit(x, 0) is S.Zero:
            s = [(-1)**k * z**(2 * k) / (factorial(k) * factorial(nu + k)
                    * 2**(2 * k)) for k in range((n + 1)//2)] + [Order(z**(n))]
            return ((z / 2)**nu * Add(*s)).expand()

After Change


        // In case of powers less than 1, number of terms need to be computed
        // separately to avoid repeated callings of _eval_nseries with wrong n
        try:
            _, exp = z.leadterm(x)
        except (ValueError, NotImplementedError):
            return self
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: sympy/sympy
Commit Name: e062523f7734f568b7b19818d25ef737d517e4be
Time: 2021-03-13
Author: sidharthmundhra16@gmail.com
File Name: sympy/functions/special/bessel.py
Class Name: besselj
Method Name: _eval_nseries


Project Name: samuelclay/NewsBlur
Commit Name: dac88c0a25340a25e247fcb27f093c86ec67b88c
Time: 2012-12-12
Author: samuel@ofbrooklyn.com
File Name: apps/social/views.py
Class Name:
Method Name: story_public_comments


Project Name: sympy/sympy
Commit Name: e062523f7734f568b7b19818d25ef737d517e4be
Time: 2021-03-13
Author: sidharthmundhra16@gmail.com
File Name: sympy/functions/special/bessel.py
Class Name: bessely
Method Name: _eval_nseries