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); }