Zeta
Evaluates the Riemann Zeta function.
Controller: CodeCogs
Contents
Interface
C++
Zeta
doublezeta( | double | p | ) |
MISSING IMAGE!
1/maths_special_zeta.png cannot be found in /users/1/maths_special_zeta.png. Please contact the submission author.
Reference
John Burkardt's library of statistical C++ routines, http://www.csit.fsu.edu/~burkardt/cpp_src/prob/prob.htmlExample 1
#include <codecogs/maths/special/zeta.h> #include <iostream> #include <iomanip> int main() { std::cout << std::setprecision(10); for (double x = 3; x < 5; x += 0.2) { std::cout << "Zeta(" << x << ") = "; std::cout << Maths::Special::zeta(x) << std::endl; } return 0; }
OutputZeta(3) = 1.202056903 Zeta(3.2) = 1.166773371 Zeta(3.4) = 1.138663776 Zeta(3.6) = 1.115989079 Zeta(3.8) = 1.097510576 Zeta(4) = 1.082323234 Zeta(4.2) = 1.069751477 Zeta(4.4) = 1.059281726 Zeta(4.6) = 1.050517383 Zeta(4.8) = 1.043148013
Parameters
p the power to which the fractions are raised
Returns
- An approximation of the Riemann Zeta function with the given parameter.
Authors
- Lucian Bentea (September 2005)
Source Code
This module is private, for owner's use only.
Not a member, then Register with CodeCogs. Already a Member, then Login.