IronRuby.Builtins.BuiltinsLibraryInitializer.LoadMath_Instance C# (CSharp) Method

LoadMath_Instance() private static method

private static LoadMath_Instance ( IronRuby module ) : void
module IronRuby
return void
        private static void LoadMath_Instance(IronRuby.Builtins.RubyModule/*!*/ module) {
            DefineLibraryMethod(module, "acos", 0x52, 
                0x00010000U, 
                new Func<System.Object, System.Double, System.Double>(IronRuby.Builtins.RubyMath.Acos)
            );
            
            DefineLibraryMethod(module, "acosh", 0x52, 
                0x00010000U, 
                new Func<System.Object, System.Double, System.Double>(IronRuby.Builtins.RubyMath.Acosh)
            );
            
            DefineLibraryMethod(module, "asin", 0x52, 
                0x00010000U, 
                new Func<System.Object, System.Double, System.Double>(IronRuby.Builtins.RubyMath.Asin)
            );
            
            DefineLibraryMethod(module, "asinh", 0x52, 
                0x00010000U, 
                new Func<System.Object, System.Double, System.Double>(IronRuby.Builtins.RubyMath.Asinh)
            );
            
            DefineLibraryMethod(module, "atan", 0x52, 
                0x00010000U, 
                new Func<System.Object, System.Double, System.Double>(IronRuby.Builtins.RubyMath.Atan)
            );
            
            DefineLibraryMethod(module, "atan2", 0x52, 
                0x00030000U, 
                new Func<System.Object, System.Double, System.Double, System.Double>(IronRuby.Builtins.RubyMath.Atan2)
            );
            
            DefineLibraryMethod(module, "atanh", 0x52, 
                0x00010000U, 
                new Func<System.Object, System.Double, System.Double>(IronRuby.Builtins.RubyMath.Atanh)
            );
            
            DefineLibraryMethod(module, "cbrt", 0x52, 
                0x00010000U, 
                new Func<System.Object, System.Double, System.Double>(IronRuby.Builtins.RubyMath.CubeRoot)
            );
            
            DefineLibraryMethod(module, "cos", 0x52, 
                0x00010000U, 
                new Func<System.Object, System.Double, System.Double>(IronRuby.Builtins.RubyMath.Cos)
            );
            
            DefineLibraryMethod(module, "cosh", 0x52, 
                0x00010000U, 
                new Func<System.Object, System.Double, System.Double>(IronRuby.Builtins.RubyMath.Cosh)
            );
            
            DefineLibraryMethod(module, "erf", 0x52, 
                0x00010000U, 
                new Func<System.Object, System.Double, System.Double>(IronRuby.Builtins.RubyMath.Erf)
            );
            
            DefineLibraryMethod(module, "erfc", 0x52, 
                0x00010000U, 
                new Func<System.Object, System.Double, System.Double>(IronRuby.Builtins.RubyMath.Erfc)
            );
            
            DefineLibraryMethod(module, "exp", 0x52, 
                0x00010000U, 
                new Func<System.Object, System.Double, System.Double>(IronRuby.Builtins.RubyMath.Exp)
            );
            
            DefineLibraryMethod(module, "frexp", 0x52, 
                0x00010000U, 
                new Func<System.Object, System.Double, IronRuby.Builtins.RubyArray>(IronRuby.Builtins.RubyMath.Frexp)
            );
            
            DefineLibraryMethod(module, "gamma", 0x52, 
                0x00010000U, 
                new Func<System.Object, System.Double, System.Double>(IronRuby.Builtins.RubyMath.Gamma)
            );
            
            DefineLibraryMethod(module, "hypot", 0x52, 
                0x00030000U, 
                new Func<System.Object, System.Double, System.Double, System.Double>(IronRuby.Builtins.RubyMath.Hypot)
            );
            
            DefineLibraryMethod(module, "ldexp", 0x52, 
                0x00030000U, 
                new Func<System.Object, System.Double, IronRuby.Runtime.IntegerValue, System.Double>(IronRuby.Builtins.RubyMath.Ldexp)
            );
            
            DefineLibraryMethod(module, "lgamma", 0x52, 
                0x00010000U, 
                new Func<System.Object, System.Double, System.Double>(IronRuby.Builtins.RubyMath.LogGamma)
            );
            
            DefineLibraryMethod(module, "log", 0x52, 
                0x00010000U, 
                new Func<System.Object, System.Double, System.Double>(IronRuby.Builtins.RubyMath.Log)
            );
            
            DefineLibraryMethod(module, "log10", 0x52, 
                0x00010000U, 
                new Func<System.Object, System.Double, System.Double>(IronRuby.Builtins.RubyMath.Log10)
            );
            
            DefineLibraryMethod(module, "log2", 0x52, 
                0x00010000U, 
                new Func<System.Object, System.Double, System.Double>(IronRuby.Builtins.RubyMath.Log2)
            );
            
            DefineLibraryMethod(module, "sin", 0x52, 
                0x00010000U, 
                new Func<System.Object, System.Double, System.Double>(IronRuby.Builtins.RubyMath.Sin)
            );
            
            DefineLibraryMethod(module, "sinh", 0x52, 
                0x00010000U, 
                new Func<System.Object, System.Double, System.Double>(IronRuby.Builtins.RubyMath.Sinh)
            );
            
            DefineLibraryMethod(module, "sqrt", 0x52, 
                0x00010000U, 
                new Func<System.Object, System.Double, System.Double>(IronRuby.Builtins.RubyMath.Sqrt)
            );
            
            DefineLibraryMethod(module, "tan", 0x52, 
                0x00010000U, 
                new Func<System.Object, System.Double, System.Double>(IronRuby.Builtins.RubyMath.Tan)
            );
            
            DefineLibraryMethod(module, "tanh", 0x52, 
                0x00010000U, 
                new Func<System.Object, System.Double, System.Double>(IronRuby.Builtins.RubyMath.Tanh)
            );
            
        }
        
BuiltinsLibraryInitializer