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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started