code: def spherical_bessel_formulas(n):
      """
      n: int
      res: array of shape [n,]
  
      n sympy functions
      Computes the sympy formulas for the spherical bessel functions up to order n (excluded)
      """
      x = sym.symbols("x")
  
      f = [sym.sin(x) / x]
      a = sym.sin(x) / x
      for i in range(1, n):
          b = sym.diff(a, x) / x
          f += [sym.simplify(b * (-x) ** i)]
          a = sym.simplify(b)
      return f
  
file_path: dgl/examples/pytorch/dimenet/modules/basis_utils.py
imports: import numpy
  import sympy
  from scipy import special
  from scipy.optimize import brentq
label_desc: Use image node_id 3 for calling a global function with example usage: spherical_bessel_formulas(n) and returns: f