4 // Author: Cesar Octavio Lopez Nataren
6 // (C) 2003, Cesar Octavio Lopez Nataren, <cesar@ciencias.unam.mx>
11 namespace Microsoft.JScript {
13 public class MathObject : JSObject {
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;
24 [JSFunctionAttribute (0, JSBuiltin.Math_abs)]
25 public static double abs (double d)
27 throw new NotImplementedException ();
30 [JSFunctionAttribute (0, JSBuiltin.Math_acos)]
31 public static double acos (double x)
33 throw new NotImplementedException ();
36 [JSFunctionAttribute (0, JSBuiltin.Math_asin)]
37 public static double asin (double x)
39 throw new NotImplementedException ();
42 [JSFunctionAttribute (0, JSBuiltin.Math_atan)]
43 public static double atan (double x)
45 throw new NotImplementedException ();
48 [JSFunctionAttribute (0, JSBuiltin.Math_atan2)]
49 public static double atan2 (double dy, double dx)
51 throw new NotImplementedException ();
54 [JSFunctionAttribute (0, JSBuiltin.Math_ceil)]
55 public static double ceil (double x)
57 throw new NotImplementedException ();
60 [JSFunctionAttribute (0, JSBuiltin.Math_cos)]
61 public static double cos (double x)
63 throw new NotImplementedException ();
66 [JSFunctionAttribute (0, JSBuiltin.Math_exp)]
67 public static double exp (double x)
69 throw new NotImplementedException ();
72 [JSFunctionAttribute (0, JSBuiltin.Math_floor)]
73 public static double floor (double x)
75 throw new NotImplementedException ();
78 [JSFunctionAttribute (0, JSBuiltin.Math_log)]
79 public static double log (double x)
81 throw new NotImplementedException ();
84 [JSFunctionAttribute (JSFunctionAttributeEnum.HasVarArgs, JSBuiltin.Math_max)]
85 public static double max (Object x, Object y, params Object [] args)
87 throw new NotImplementedException ();
90 [JSFunctionAttribute (JSFunctionAttributeEnum.HasVarArgs, JSBuiltin.Math_min)]
91 public static double min (Object x, Object y, params Object [] args)
93 throw new NotImplementedException ();
96 [JSFunctionAttribute (0, JSBuiltin.Math_pow)]
97 public static double pow (double dx, double dy)
99 throw new NotImplementedException ();
102 [JSFunctionAttribute (0, JSBuiltin.Math_random)]
103 public static double random ()
105 throw new NotImplementedException ();
108 [JSFunctionAttribute (0, JSBuiltin.Math_round)]
109 public static double round (double d)
111 throw new NotImplementedException ();
114 [JSFunctionAttribute (0, JSBuiltin.Math_sin)]
115 public static double sin (double x)
117 throw new NotImplementedException ();
120 [JSFunctionAttribute (0, JSBuiltin.Math_sqrt)]
121 public static double sqrt (double x)
123 throw new NotImplementedException ();
126 [JSFunctionAttribute (0, JSBuiltin.Math_tan)]
127 public static double tan (double x)
129 throw new NotImplementedException ();