using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ClassificationOnLevelDetalization { public class Class1 { public double GetCos(double x) { double myCos; myCos = Math.Sqrt(1 - Math.Sin(x)*Math.Sin(x)); return myCos; } public double DriverGetCos(double x) { double myCos; myCos = GetCos(x); Console.Write("\nДрайвер косинуса: "+ myCos); return myCos; } public double GetSec(double x) { double mySec; mySec = 1/GetCos(x); return mySec; } public double DriverGetSec(double x) { double mySec; mySec = GetSec(x); Console.Write("\nДрайвер сек: " + mySec); return mySec; } public double GetTan(double x) { double myTan; myTan = Math.Sin(x) / GetCos(x); return myTan; } public double DriverGetTan(double x) { double myTan; myTan = GetTan(x); Console.Write("\nДрайвер тан: " + myTan); return myTan; } public double GetCot(double x) { double myCot; myCot = GetCos(x) / Math.Sin(x); return myCot; } public double DriverGetCot(double x) { double myCot; myCot = GetCot(x); Console.Write("\nДрайвер котангес: " + myCot); return myCot; } public double GetLog(int a, double x) { double myLog; if(a != 1 && a > 0) { myLog = Math.Log(x) / Math.Log(a); return myLog; } else { Console.WriteLine("Неверный данные"); return -111111111; } } public double DriverGetLog(int a, double x) { double myLog; myLog = GetLog(a,x); Console.Write("\nДрайвер логарифм: " + myLog); return myLog; } public double First(double x) { double result; result = ((((GetCot(x) / GetSec(x)) - GetTan(x) ) * Math.Sin(x)) / GetCos(x)) * (((Math.Sin(x) + GetCos(x)) + GetCos(x)) * ((Math.Sin(x) + GetCos(x)) + GetCos(x))); return result; } public double DriverFirst(double x) { double result; result = First(x); Console.Write("\nДрайвер результата первого: " + result); return result; } public double Second(double x) { double result; result = ((((GetLog(5, x) * GetLog(5, x) * GetLog(5, x)) * GetLog(10, x)) + GetLog(3, x)) / Math.Log(x)) + (Math.Log(x) * GetLog(5, x)); return result; } public double DriverSecond(double x) { double result; result = Second(x); Console.Write("\nДрайвер результата второго: " + result); return result; } } }