Question: Create a Python function planck that computes the Planck radiation function, B (T) = (2h 3 /c 2 ) * (exp (h /kT) 1) -1

Create a Python function planck that computes the Planck radiation function,

B(T) = (2h 3/c2) * (exp (h /kT) 1)-1

Here is the frequency of light (in Hz) and T is the temperature (in K). All of the other symbols are physical constants with the usual meanings. In your function call, you must allow for 1-D array of temperatures and 1-D array of frequencies to be given. If M temperatures and N frequencies are given, your function should return an N-by-M array where the rows correspond to a single temperature and the columns, a single frequency. Your function cannot contain any looping constructs (such as for-loops or while- loops) to achieve this functionality. (Hint: look up the concept of broadcasting in Python documentation).

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!