static void Main(string[] args)
{
double x = -1.5;
double step = 0.5;
double y = 0;
double a = -1.25;
double b = -1.5;
double c = 0.75;
while (x <= 3.5)
y = (Math.Pow(10, -2)*b*c )/ x + Math.Cos(Math.Sqrt(Math.Pow(a, 3) * x));
Console.WriteLine("Текущее значение х: " + x + " Значение функции y(x)= " + y);
x = x + step;
}
Console.ReadLine();
static void Main(string[] args)
{
double x = -1.5;
double step = 0.5;
double y = 0;
double a = -1.25;
double b = -1.5;
double c = 0.75;
while (x <= 3.5)
{
y = (Math.Pow(10, -2)*b*c )/ x + Math.Cos(Math.Sqrt(Math.Pow(a, 3) * x));
Console.WriteLine("Текущее значение х: " + x + " Значение функции y(x)= " + y);
x = x + step;
}
Console.ReadLine();
}