Пример #1
0
        public static decimal tanh(decimal angle)
        {
            decimal cosh = AposkaMath.cosh(angle);
            decimal sinh = AposkaMath.sinh(angle);

            return(sinh / cosh);
        }
Пример #2
0
        public static decimal cose(decimal angle)
        {
            //angle to radian convert
            angle = angleCheck(angle);
            angle = angletolower(angle, 'c');
            angle = angle / 180 * AposkaMath.pi;
            int sayac = 1; decimal binomial = 0; decimal sin = 0;

            for (int i = 2; i < 7; i += 2)
            {
                if (sayac % 2 == 0)
                {
                    binomial += Convert.ToDecimal(AposkaMath.pow(angle, i) / Convert.ToDecimal(fact(i))) * -1;
                }
                else
                {
                    binomial += Convert.ToDecimal(AposkaMath.pow(angle, i) / Convert.ToDecimal(fact(i)));
                }


                sayac++;
            }
            sin = 1 - binomial;
            return(bolge * sin);
        }
Пример #3
0
        public static decimal cot(decimal angle)
        {
            decimal sine = AposkaMath.sine(angle);
            decimal cose = AposkaMath.cose(angle);
            decimal cot  = cose / sine;

            return(cot);
        }
Пример #4
0
        public static decimal tan(decimal angle)
        {
            decimal sine = AposkaMath.sine(angle);
            decimal cose = AposkaMath.cose(angle);
            decimal tan  = sine / cose;

            return(tan);
        }
Пример #5
0
 public static decimal arccos(decimal value)
 {
     for (int i = 0; i <= 360; i++)
     {
         if (AposkaMath.getDigitAfterPoint(Convert.ToDecimal(AposkaMath.cose(i)), 3) == AposkaMath.getDigitAfterPoint(value, 3))
         {
             return(i);
         }
     }
     Console.WriteLine("unknown results");
     return(0);
 }
Пример #6
0
        public static decimal csch(decimal angle)
        {
            decimal sinh = AposkaMath.sinh(angle);

            return(1 / sinh);
        }
Пример #7
0
        public static decimal sech(decimal angle)
        {
            decimal cosh = AposkaMath.cosh(angle);

            return(1 / cosh);
        }
Пример #8
0
        public static decimal coth(decimal angle)
        {
            decimal tanh = AposkaMath.tanh(angle);

            return(1 / tanh);
        }