[Tutor] Schechter Function in python

Michael Roberts michael_john_roberts at yahoo.com
Wed Aug 5 00:16:31 CEST 2015


I'm having a few problems defining a Schecter function in python. Without going into too much detail I need to add a +0j factor for matplotlib to plot the function in real and imaginary space. I know that this is not what should be happening. After extensive debugging I am asking the community for help. I would like to see some answers and compare them to what I have done to see if I have caused the error or if their is some underlying problem with the quoted function (taken from Salim et al. 2007).

So my question is this: how would you write the following as a python function using valid python mathematical expressions:


 
Michael Roberts | astrobox.io | University College London


More information about the Tutor mailing list