I'm trying to understand this python CAMB code: http://camb.readthedocs.io/en/latest/CAMBdemo.html(adsbygoogle = window.adsbygoogle || []).push({});

Scroll down to In[29] and In[30] to see it.

It's an integration over chi (comoving distance), yet scipy.integrate.quad is not called. It seems that the fun stuff happens in the last for-loop in In[30], where they use numpy.dot to take dot product of two arrays. What's going on here? The first array is Delta-Chi (see In[29]) and the second is simply the integrand. So how is this integration? Thanks

**Physics Forums - The Fusion of Science and Community**

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

# CAMB python convergence power spectrum code

Have something to add?

Draft saved
Draft deleted

Loading...

Similar Threads - CAMB python convergence | Date |
---|---|

Python How can I run Python by getting values from Matlab | Mar 7, 2018 |

Python Interesting article how to use Pandas with Excel sheets | Feb 19, 2018 |

Porting Python Code to Fortran for Parallel Computing | Dec 15, 2017 |

What's wrong with my bisection method code? | Dec 10, 2017 |

Newton Raphson method (convergence problem) | Nov 26, 2015 |

**Physics Forums - The Fusion of Science and Community**