calculating the number of photons in a cavity
- From: nure123@xxxxxxxxx
- Date: Thu, 05 Jul 2007 18:17:11 -0000
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
.
- Prev by Date: Re: Your presidential candidates :-)
- Next by Date: Re: Hyperion. Cool.
- Previous by thread: Hyperion. Cool.
- Next by thread: Quantum Gravity 160.6: More Re How Sine Enters Into Strings and Springs and Elasticity
- Index(es):
Relevant Pages
|