github.com/gopherd/gonum@v0.0.4/mathext/internal/cephes/cephes.go (about)

     1  // Copyright ©2016 The Gonum Authors. All rights reserved.
     2  // Use of this source code is governed by a BSD-style
     3  // license that can be found in the LICENSE file.
     4  
     5  package cephes
     6  
     7  import "math"
     8  
     9  /*
    10  Additional copyright information:
    11  
    12  Code in this package is adapted from the Cephes library (http://www.netlib.org/cephes/).
    13  There is no explicit licence on Netlib, but the author has agreed to a BSD release.
    14  See https://github.com/deepmind/torch-cephes/blob/master/LICENSE.txt and
    15  https://lists.debian.org/debian-legal/2004/12/msg00295.html
    16  */
    17  
    18  const (
    19  	paramOutOfBounds            = "cephes: parameter out of bounds"
    20  	errParamFunctionSingularity = "cephes: function singularity"
    21  )
    22  
    23  const (
    24  	machEp  = 1.0 / (1 << 53)
    25  	maxLog  = 1024 * math.Ln2
    26  	minLog  = -1075 * math.Ln2
    27  	maxIter = 2000
    28  )