Sha256: 7baea17cee63d8dc33305bc87be62b4bf6eefc2f11f37887db4a890aea09e66f

Contents?: true

Size: 784 Bytes

Versions: 20

Compression:

Stored size: 784 Bytes

Contents

module MoreMath
  module Constants
    module FunctionsConstants
      LANCZOS_COEFFICIENTS = [
        0.99999999999999709182,
        57.156235665862923517,
        -59.597960355475491248,
        14.136097974741747174,
        -0.49191381609762019978,
        0.33994649984811888699e-4,
        0.46523628927048575665e-4,
        -0.98374475304879564677e-4,
        0.15808870322491248884e-3,
        -0.21026444172410488319e-3,
        0.21743961811521264320e-3,
        -0.16431810653676389022e-3,
        0.84418223983852743293e-4,
        -0.26190838401581408670e-4,
        0.36899182659531622704e-5,
      ]

      HALF_LOG_2_PI = 0.5 * Math.log(2 * Math::PI)

      ERF_A = -8 * (Math::PI - 3) / (3 * Math::PI * (Math::PI - 4))

      ROOT2 = Math.sqrt(2)
    end
  end
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
more_math-1.3.0 lib/more_math/constants/functions_constants.rb
more_math-1.2.2 lib/more_math/constants/functions_constants.rb
more_math-1.2.1 lib/more_math/constants/functions_constants.rb
more_math-1.2.0 lib/more_math/constants/functions_constants.rb
more_math-1.1.0 lib/more_math/constants/functions_constants.rb
more_math-1.0.2 lib/more_math/constants/functions_constants.rb
more_math-1.0.1 lib/more_math/constants/functions_constants.rb
more_math-1.0.0 lib/more_math/constants/functions_constants.rb
more_math-0.4.0 lib/more_math/constants/functions_constants.rb
more_math-0.3.3 lib/more_math/constants/functions_constants.rb
more_math-0.3.2 lib/more_math/constants/functions_constants.rb
more_math-0.3.1 lib/more_math/constants/functions_constants.rb
more_math-0.3.0 lib/more_math/constants/functions_constants.rb
more_math-0.2.1 lib/more_math/constants/functions_constants.rb
more_math-0.1.0 lib/more_math/constants/functions_constants.rb
more_math-0.0.4 lib/more_math/constants/functions_constants.rb
more_math-0.0.3 lib/more_math/constants/functions_constants.rb
more_math-0.0.2 lib/more_math/constants/functions_constants.rb
more_math-0.0.1 lib/more_math/constants/functions_constants.rb
more_math-0.0.0 lib/more_math/constants/functions_constants.rb