J
JBNewsGroup
Hi Jezebel,
<< That's elegant. Any suggestions for the Riemann zeta function? >>
You really made me hit the books on this one. I had to go to the
http://mathworld.wolfram.com/RiemannZetaFunction.html site to read about it.
First off you must be a "math person" to be doing this kind of work on a PC
without FORTRAN. I know of no "elegant" way to program the function. The
only suggestion I have is to program the 1/k function as a series. Try
not to use exponentiation as it is the slowest computer math algorithm.
Series are easy to implement and usually involve multiplication, and some
division, with is way faster than exponentiation.
There is a good book for numerical methods for computers and I usually hit
this book first. It is geared towards FORTRAN but I have found that it is
relatively easy to translate to other languages (they give some flowcharts).
If you can find it the book is: "Applied Numerical Methods for Digital
Computation With FORTRAN" by M. L. James, G. M. Smith and J. C. Wolford. My
copy is from 1967 (dating myself) but math doesn't change.
If you wish, post your code and I will look it over to see if I can simplify
it, or make it more efficient.
Jerry Bodoff
<< That's elegant. Any suggestions for the Riemann zeta function? >>
You really made me hit the books on this one. I had to go to the
http://mathworld.wolfram.com/RiemannZetaFunction.html site to read about it.
First off you must be a "math person" to be doing this kind of work on a PC
without FORTRAN. I know of no "elegant" way to program the function. The
only suggestion I have is to program the 1/k function as a series. Try
not to use exponentiation as it is the slowest computer math algorithm.
Series are easy to implement and usually involve multiplication, and some
division, with is way faster than exponentiation.
There is a good book for numerical methods for computers and I usually hit
this book first. It is geared towards FORTRAN but I have found that it is
relatively easy to translate to other languages (they give some flowcharts).
If you can find it the book is: "Applied Numerical Methods for Digital
Computation With FORTRAN" by M. L. James, G. M. Smith and J. C. Wolford. My
copy is from 1967 (dating myself) but math doesn't change.
If you wish, post your code and I will look it over to see if I can simplify
it, or make it more efficient.
Jerry Bodoff