Adding Zeta to the top level with tests

This commit is contained in:
Kent English
2016-11-17 15:40:21 -05:00
parent 69c3ae8715
commit f089b6353e
2 changed files with 44 additions and 0 deletions

12
zeta.go Normal file
View File

@@ -0,0 +1,12 @@
// Copyright ©2016 The gonum Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package mathext
import "github.com/zeroviscosity/mathext/internal/cephes"
// Zeta computes the Riemann zeta function of two arguments
func Zeta(x, q float64) float64 {
return cephes.Zeta(x, q)
}