planck.function: Create a Planck's law function

Description Usage Arguments Details Value Examples

Description

Create a Planck's law function and possibly set parameters.

Usage

1
2
planck.function(frequency = NULL, wavelength = NULL, epsilon = NULL,
  T = NULL)

Arguments

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 frequency and wavelength are given.

epsilon

numeric. If possible, set the constant emissivity epsilon for the function. In the range c(0,1).

T

numeric. If possible, set the constant Temperature T for the function. In the range c(0,1).

Details

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.

Value

a Planck's law function

Examples

 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)

nobodyinperson/meteoRology documentation built on May 23, 2019, 9:31 p.m.