Skip to content

Commit

Permalink
Remove zeta
Browse files Browse the repository at this point in the history
  • Loading branch information
gecko0307 committed Aug 14, 2024
1 parent a490354 commit de9cbef
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions dlib/math/complex.d
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
Copyright (c) 2013-2023 Timur Gafarov
Copyright (c) 2013-2024 Timur Gafarov
Boost Software License - Version 1.0 - August 17th, 2003
Expand Down Expand Up @@ -230,17 +230,6 @@ Complex!T exp(T)(Complex!T s)
std.math.exp(s.re) * sin(s.im));
}

/**
* Riemann zeta function:
* ζ(s) = 1/1^s + 1/2^s + 1/3^s + ...
*/
Complex!T zeta(T)(Complex!T s)
{
return Complex!T(1.0) +
(s + Complex!T(3.0)) / (s - Complex!T(1.0)) *
Complex!T(1.0) / pow(Complex!T(2.0), s + Complex!T(1.0));
}

/*
* Predefined complex type aliases
*/
Expand Down

0 comments on commit de9cbef

Please sign in to comment.