github.com/jingcheng-WU/gonum@v0.9.1-0.20210323123734-f1a2a11a8f7b/stat/distuv/constants.go (about) 1 // Copyright ©2014 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 distuv 6 7 const ( 8 // oneOverRoot2Pi is the value of 1/(2Pi)^(1/2) 9 // http://www.wolframalpha.com/input/?i=1%2F%282+*+pi%29%5E%281%2F2%29 10 oneOverRoot2Pi = 0.39894228040143267793994605993438186847585863116493465766592582967065792589930183850125233390730693643030255886263518268 11 12 //LogRoot2Pi is the value of log(sqrt(2*Pi)) 13 logRoot2Pi = 0.91893853320467274178032973640561763986139747363778341281715154048276569592726039769474329863595419762200564662463433744 14 negLogRoot2Pi = -logRoot2Pi 15 log2Pi = 1.8378770664093454835606594728112352797227949472755668 16 ln2 = 0.69314718055994530941723212145817656807550013436025525412068000949339362196969471560586332699641868754200148102057068573368552023 17 18 // Euler–Mascheroni constant. 19 eulerGamma = 0.5772156649015328606065120900824024310421593359399235988057672348848677267776646709369470632917467495146314472498070824809605 20 ) 21 22 const ( 23 panicNameMismatch = "parameter name mismatch" 24 )