1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
  | using System; 
 |  using System.Collections.Generic; 
 |  using System.Linq; 
 |  using System.Text; 
 |    
 |  namespace Jace.Util 
 |  { 
 |      public static class MathUtil 
 |      { 
 |          public static double Cot(double a) 
 |          { 
 |              return 1 / Math.Tan(a); 
 |          } 
 |    
 |          public static double Acot(double d) 
 |          { 
 |              return Math.Atan(1 / d); 
 |          } 
 |    
 |          public static double Csc(double a) 
 |          { 
 |              return 1 / Math.Sin(a); 
 |          } 
 |    
 |          public static double Sec(double d) 
 |          { 
 |              return 1 / Math.Cos(d); 
 |          } 
 |      } 
 |  } 
 |  
  |