e6d6a9554d4f8969233a86df3091493c38342971
[mono.git] / mcs / class / Microsoft.JScript / Microsoft.JScript / MathObject.cs
1 //
2 // MathObject.cs:
3 //
4 // Author: Cesar Octavio Lopez Nataren
5 //
6 // (C) 2003, Cesar Octavio Lopez Nataren, <cesar@ciencias.unam.mx>
7 //
8
9 using System;
10
11 namespace Microsoft.JScript {
12
13         public class MathObject : JSObject {
14
15                 public const double E = 2.7182818284590452354;
16                 public const double LN10 = 2.302585092994046;
17                 public const double LN2 = 0.6931471805599453;
18                 public const double LOG2E = 1.4426950408889634;
19                 public const double LOG10E = 0.4342944819032518;
20                 public const double PI = 3.14159265358979323846;
21                 public const double SQRT1_2 = 0.7071067811865476;
22                 public const double SQRT2 = 1.4142135623730951;
23
24                 [JSFunctionAttribute (0, JSBuiltin.Math_abs)]
25                 public static double abs (double d)
26                 {
27                         throw new NotImplementedException ();
28                 }
29
30                 [JSFunctionAttribute (0, JSBuiltin.Math_acos)]
31                 public static double acos (double x)
32                 {
33                         throw new NotImplementedException ();
34                 }
35
36                 [JSFunctionAttribute (0, JSBuiltin.Math_asin)]
37                 public static double asin (double x)
38                 {
39                         throw new NotImplementedException ();
40                 }
41
42                 [JSFunctionAttribute (0, JSBuiltin.Math_atan)]
43                 public static double atan (double x)
44                 {
45                         throw new NotImplementedException ();
46                 }
47
48                 [JSFunctionAttribute (0, JSBuiltin.Math_atan2)]
49                 public static double atan2 (double dy, double dx)
50                 {
51                         throw new NotImplementedException ();
52                 }
53
54                 [JSFunctionAttribute (0, JSBuiltin.Math_ceil)]
55                 public static double ceil (double x)
56                 {
57                         throw new NotImplementedException ();
58                 }
59
60                 [JSFunctionAttribute (0, JSBuiltin.Math_cos)]
61                 public static double cos (double x)
62                 {
63                         throw new NotImplementedException ();
64                 }
65
66                 [JSFunctionAttribute (0, JSBuiltin.Math_exp)]
67                 public static double exp (double x)
68                 {
69                         throw new NotImplementedException ();
70                 }
71
72                 [JSFunctionAttribute (0, JSBuiltin.Math_floor)]
73                 public static double floor (double x)
74                 {
75                         throw new NotImplementedException ();
76                 }
77
78                 [JSFunctionAttribute (0, JSBuiltin.Math_log)]
79                 public static double log (double x)
80                 {
81                         throw new NotImplementedException ();
82                 }
83
84                 [JSFunctionAttribute (JSFunctionAttributeEnum.HasVarArgs, JSBuiltin.Math_max)]
85                 public static double max (Object x, Object y, params Object [] args)
86                 {
87                         throw new NotImplementedException ();
88                 }
89
90                 [JSFunctionAttribute (JSFunctionAttributeEnum.HasVarArgs, JSBuiltin.Math_min)]
91                 public static double min (Object x, Object y, params Object [] args)
92                 {
93                         throw new NotImplementedException ();
94                 }
95
96                 [JSFunctionAttribute (0, JSBuiltin.Math_pow)]
97                 public static double pow (double dx, double dy)
98                 {
99                         throw new NotImplementedException ();
100                 }
101
102                 [JSFunctionAttribute (0, JSBuiltin.Math_random)]
103                 public static double random ()
104                 {
105                         throw new NotImplementedException ();
106                 }
107
108                 [JSFunctionAttribute (0, JSBuiltin.Math_round)]
109                 public static double round (double d)
110                 {
111                         throw new NotImplementedException ();
112                 }
113
114                 [JSFunctionAttribute (0, JSBuiltin.Math_sin)]
115                 public static double sin (double x)
116                 {
117                         throw new NotImplementedException ();
118                 }
119
120                 [JSFunctionAttribute (0, JSBuiltin.Math_sqrt)]
121                 public static double sqrt (double x)
122                 {
123                         throw new NotImplementedException ();
124                 }
125
126                 [JSFunctionAttribute (0, JSBuiltin.Math_tan)]
127                 public static double tan (double x)
128                 {
129                         throw new NotImplementedException ();
130                 }
131         }
132 }