python - ValueError while using scipy.integrate to calculate value of a function -


I am trying to evaluate the function for different values ​​of a variable n I made a NP Linsep and function of the momentum Q :

  def Q (z_i, z_min, f_gamma, mdm, sigma_v, n, with_ucmh) plug-in in: DQdz_z = lambda Z: Dikyudijh (F_ Gemma, MDM, Sigma_vi, Z, N, Sath_kyuemac) integrated = lambda z: ((1 / ((1 + z) * Ac_jh (Z))) * (Dikyudijh_jh ( Z)) * np. (z)) second_part = const.C * const .B * integrate.romberg (integrand, z_min, z_i) return second_part z_i = 2.0e6 z_min = 5.0e4 sigma_v = 3.0e-27 f_gamma = 1. MDM = 10. with_ucmh = true n = np.linspace (1., 1.3 100) mu = Q (z_i, z_min, f_gamma, mdm, sigma_v, n, with_ucmh)  

I value error: an array element with a sequence Installing indicates me for the line where I use integrity. Use the method of gravity, but I do not understand how I get such error here.


Comments

Popular posts from this blog

import - Python ImportError: No module named wmi -

Editing Python Class in Shell and SQLAlchemy -

lua - HowTo create a fuel bar -