Description Usage Arguments Details Value Examples
Create a Planck's law function and possibly set parameters.
1 2 |
frequency |
logical or numeric. Return a Planck's law function for frequency? |
wavelength |
logical or numeric. Return a Planck's law function for wavelength?
Unused if both |
epsilon |
numeric. If possible, set the constant emissivity |
T |
numeric. If possible, set the constant Temperature |
The function is compiled to bytecode with cmpfun
from the compiler
package
if possible.
If the package functionutils
is available, all given numeric arguments are
substituted into the returned function.
a Planck's law function
1 2 3 4 5 6 7 8 9 10 11 | planck.function(frequency = T)
# function(frequency,T,epsilon)
# epsilon * ( 2 * meteorology::h * frequency ^ 3 ) / meteorology::c ^ 2 * 1 / ( exp( (meteorology::h * frequency ) / ( meteorology::k * T ) ) - 1 )
planck.function(frequency = T, epsilon = 0.5, T = 300)
# function (frequency)
# 0.5 * (2 * meteorology::h * frequency^3)/meteorology::c^2 * 1/(exp((meteorology::h * frequency)/(meteorology::k * 300)) - 1)
planck.function(frequency = 3e9)
# function (T, epsilon)
# epsilon * (2 * meteorology::h * 3e+09^3)/meteorology::c^2 * 1/(exp((meteorology::h * 3e+09)/(meteorology::k * T)) - 1)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.