PageRenderTime 18ms CodeModel.GetById 2ms app.highlight 11ms RepoModel.GetById 2ms app.codeStats 0ms

/IronPython_2_0/Src/IronPython.Modules/math.Generated.cs

#
C# | 84 lines | 61 code | 6 blank | 17 comment | 0 complexity | 5d47ccd672156be19a934e73dacabb32 MD5 | raw file
 1/* ****************************************************************************
 2 *
 3 * Copyright (c) Microsoft Corporation. 
 4 *
 5 * This source code is subject to terms and conditions of the Microsoft Public License. A 
 6 * copy of the license can be found in the License.html file at the root of this distribution. If 
 7 * you cannot locate the  Microsoft Public License, please send an email to 
 8 * ironpy@microsoft.com. By using this source code in any fashion, you are agreeing to be bound 
 9 * by the terms of the Microsoft Public License.
10 *
11 * You must not remove this notice, or any other, from this software.
12 *
13 *
14 * ***************************************************************************/
15
16using System; using Microsoft;
17
18namespace IronPython.Modules {
19    public static partial class PythonMath {
20        #region Generated math functions
21
22        // *** BEGIN GENERATED CODE ***
23        // generated by function: gen_funcs from: generate_math.py
24
25        public static double acos(double v0) {
26            return Check(Math.Acos(v0));
27        }
28        public static double asin(double v0) {
29            return Check(Math.Asin(v0));
30        }
31        public static double atan(double v0) {
32            return Check(Math.Atan(v0));
33        }
34        public static double atan2(double v0, double v1) {
35            return Check(Math.Atan2(v0, v1));
36        }
37        public static double ceil(double v0) {
38            return Check(Math.Ceiling(v0));
39        }
40        public static double cos(double v0) {
41            return Check(Math.Cos(v0));
42        }
43        public static double cosh(double v0) {
44            return Check(Math.Cosh(v0));
45        }
46        public static double exp(double v0) {
47            return Check(Math.Exp(v0));
48        }
49        public static double fabs(double v0) {
50            return Check(Math.Abs(v0));
51        }
52        public static double floor(double v0) {
53            return Check(Math.Floor(v0));
54        }
55        public static double log(double v0) {
56            return Check(Math.Log(v0));
57        }
58        public static double log10(double v0) {
59            return Check(Math.Log10(v0));
60        }
61        public static double pow(double v0, double v1) {
62            return Check(Math.Pow(v0, v1));
63        }
64        public static double sin(double v0) {
65            return Check(Math.Sin(v0));
66        }
67        public static double sinh(double v0) {
68            return Check(Math.Sinh(v0));
69        }
70        public static double sqrt(double v0) {
71            return Check(Math.Sqrt(v0));
72        }
73        public static double tan(double v0) {
74            return Check(Math.Tan(v0));
75        }
76        public static double tanh(double v0) {
77            return Check(Math.Tanh(v0));
78        }
79
80        // *** END GENERATED CODE ***
81
82        #endregion
83    }
84}