PageRenderTime 75ms CodeModel.GetById 17ms RepoModel.GetById 0ms 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
Possible License(s): GPL-2.0, MPL-2.0-no-copyleft-exception, CPL-1.0, CC-BY-SA-3.0, BSD-3-Clause, ISC, AGPL-3.0, LGPL-2.1, Apache-2.0
  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. using System; using Microsoft;
  16. namespace IronPython.Modules {
  17. public static partial class PythonMath {
  18. #region Generated math functions
  19. // *** BEGIN GENERATED CODE ***
  20. // generated by function: gen_funcs from: generate_math.py
  21. public static double acos(double v0) {
  22. return Check(Math.Acos(v0));
  23. }
  24. public static double asin(double v0) {
  25. return Check(Math.Asin(v0));
  26. }
  27. public static double atan(double v0) {
  28. return Check(Math.Atan(v0));
  29. }
  30. public static double atan2(double v0, double v1) {
  31. return Check(Math.Atan2(v0, v1));
  32. }
  33. public static double ceil(double v0) {
  34. return Check(Math.Ceiling(v0));
  35. }
  36. public static double cos(double v0) {
  37. return Check(Math.Cos(v0));
  38. }
  39. public static double cosh(double v0) {
  40. return Check(Math.Cosh(v0));
  41. }
  42. public static double exp(double v0) {
  43. return Check(Math.Exp(v0));
  44. }
  45. public static double fabs(double v0) {
  46. return Check(Math.Abs(v0));
  47. }
  48. public static double floor(double v0) {
  49. return Check(Math.Floor(v0));
  50. }
  51. public static double log(double v0) {
  52. return Check(Math.Log(v0));
  53. }
  54. public static double log10(double v0) {
  55. return Check(Math.Log10(v0));
  56. }
  57. public static double pow(double v0, double v1) {
  58. return Check(Math.Pow(v0, v1));
  59. }
  60. public static double sin(double v0) {
  61. return Check(Math.Sin(v0));
  62. }
  63. public static double sinh(double v0) {
  64. return Check(Math.Sinh(v0));
  65. }
  66. public static double sqrt(double v0) {
  67. return Check(Math.Sqrt(v0));
  68. }
  69. public static double tan(double v0) {
  70. return Check(Math.Tan(v0));
  71. }
  72. public static double tanh(double v0) {
  73. return Check(Math.Tanh(v0));
  74. }
  75. // *** END GENERATED CODE ***
  76. #endregion
  77. }
  78. }