calculating the number of photons in a cavity



Hi,
I need to calculate the number of photons in some energy interval in a
cavity. To that end, I have to evaluate the integral containing the
Bose-Einestein distribution. I tried with numerical integration but I
could not get enough accuracy for lasing condition (denominator of the
distribution being equal to zero for certain values of energies). Then
I tried with symbolic integration and evaluation of the resulting
expression. It has worked flawlessly, but I wrote the code in MATLAB
and MATLAB has polylogarithm function that makes evaluation a breeze.

However, I need to write the same code in C but have problem finding a
function that evaluates polylogarithm. I am trying to use Cephes
library but till now have not been succssful. Does anybody know if
someone has made available code for evaluating the integrating of Bose-
Einestein distribution? Similarly, if anybody has used the extended
precision functions of Cephes, I would appreciate if he could tell me
how to pass into the inputs and use the resulting output. Specially,
the inputs are pointers to unsigned int and I could not find out how
to pass non-integer arguments and how to use the returned pointers to
unsigned int.
Nure

.



Relevant Pages

  • Re: Infantile authours degrading this NG.
    ... integration by parts does not apply because delta ... The evaluation of the spectrum of the Diracian relies ...
    (sci.math)
  • Re: Infantile authours degrading this NG.
    ... > That evaluation is the one by which all electronic ... > engineers are taught. ... But the integral you need for your integration by parts is... ...
    (sci.math)
  • Re: Disappointed
    ... Make your mind up - you said originally that I ... of Integration By Parts and had to use an anti-derivative. ... What is "x" in the evaluation of an anti-derivative of f? ... of the Unilateral Laplace Transform? ...
    (sci.math)
  • Re: Overlapping probability distributions
    ... What is the probability that a random man is taller ... of the two draws) the pair has the bivariate distribution A*B ... now reduces to a 1-dimensional integration. ... about linear combinations of independent normal random variables; ...
    (sci.math)
  • Re: Dirac-Delta function
    ... > to use densities to represent the distribution requires you ... that is why we began using the dirac-delta function. ... > integration with respect to functions with jump discontinuities. ... > Pfor a discrete variable has such jumps. ...
    (sci.math)