**** Merged from MCS ****
[mono-project.git] / mcs / class / Microsoft.JScript / Microsoft.JScript / LenientMathObject.cs
blob5954a5a82e0bad54bc535164f5217113ba6a248e
1 //
2 // LenientMathobject.cs:
3 //
4 // Author:
5 // Cesar Lopez Nataren (cesar@ciencias.unam.mx)
6 //
7 // (C) 2003, Cesar Lopez Nataren
8 //
11 // Permission is hereby granted, free of charge, to any person obtaining
12 // a copy of this software and associated documentation files (the
13 // "Software"), to deal in the Software without restriction, including
14 // without limitation the rights to use, copy, modify, merge, publish,
15 // distribute, sublicense, and/or sell copies of the Software, and to
16 // permit persons to whom the Software is furnished to do so, subject to
17 // the following conditions:
18 //
19 // The above copyright notice and this permission notice shall be
20 // included in all copies or substantial portions of the Software.
21 //
22 // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
23 // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
24 // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
25 // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
26 // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
27 // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
28 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
31 namespace Microsoft.JScript.Tmp
33 public sealed class LenientMathobject : MathObject
35 public new const double E = 2.7182818284590452354;
36 public new const double LN10 = 2.302585092994046;
37 public new const double LN2 = 0.6931471805599453;
38 public new const double LOG2E = 1.4426950408889634;
39 public new const double LOG10E = 0.4342944819032518;
40 public new const double PI = 3.14159265358979323846;
41 public new const double SQRT1_2 = 0.7071067811865476;
42 public new const double SQRT2 = 1.4142135623730951;
44 public new object abs;
45 public new object acos;
46 public new object asin;
47 public new object atan;
48 public new object atan2;
49 public new object ceil;
50 public new object cos;
51 public new object exp;
52 public new object floor;
53 public new object log;
54 public new object max;
55 public new object min;
56 public new object pow;
57 public new object random;
58 public new object round;
59 public new object sin;
60 public new object sqrt;
61 public new object tan;