public static decimal tanh(decimal angle) { decimal cosh = AposkaMath.cosh(angle); decimal sinh = AposkaMath.sinh(angle); return(sinh / cosh); }
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); }
public static decimal cot(decimal angle) { decimal sine = AposkaMath.sine(angle); decimal cose = AposkaMath.cose(angle); decimal cot = cose / sine; return(cot); }
public static decimal tan(decimal angle) { decimal sine = AposkaMath.sine(angle); decimal cose = AposkaMath.cose(angle); decimal tan = sine / cose; return(tan); }
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); }
public static decimal csch(decimal angle) { decimal sinh = AposkaMath.sinh(angle); return(1 / sinh); }
public static decimal sech(decimal angle) { decimal cosh = AposkaMath.cosh(angle); return(1 / cosh); }
public static decimal coth(decimal angle) { decimal tanh = AposkaMath.tanh(angle); return(1 / tanh); }