1
2
3
4
5
6 using System;
7
8 namespace System
9 {
10 public nothrow double Pow(double x, int exponent)
11 {
12 return RtPow(x, exponent);
13 }
14
15 public nothrow double Sqrt(double x)
16 {
17 return RtSqrt(x);
18 }
19
20 public nothrow int Log10(int n)
21 {
22 int log10 = 1;
23 int m = n / 10;
24 while (m > 0)
25 {
26 ++log10;
27 m = m / 10;
28 }
29 return log10;
30 }
31
32 public nothrow double PI()
33 {
34 return RtPi();
35 }
36
37 public nothrow double DegToRad(double angleDeg)
38 {
39 return PI() * angleDeg / 180.0;
40 }
41
42 public nothrow double RadToDeg(double angleRad)
43 {
44 return angleRad * 180.0 / PI();
45 }
46
47 public nothrow double Cos(double angleRad)
48 {
49 return RtCos(angleRad);
50 }
51
52 public nothrow double Sin(double angleRad)
53 {
54 return RtSin(angleRad);
55 }
56
57 public nothrow double ArcCos(double x)
58 {
59 return RtArcCos(x);
60 }
61
62 public nothrow double ArcSin(double x)
63 {
64 return RtArcSin(x);
65 }
66
67 public nothrow double Atan2(double y, double x)
68 {
69 return RtAtan2(y, x);
70 }
71
72 public nothrow double Epsilon()
73 {
74 return RtEpsilon();
75 }
76 }