GVA SUPPORT

³ 1296051036
Text:
	Բ =  ..

 :  

using System;
using System.Collections.Generic;
using System.Text;

namespace ConsoleApplication6
{
    class Program
    {
        static double f(double x)
        {
            return Math.Cos(2 * Math.Sin(x));
        }
        static void Main(string[] args)
        {
            double a = 0, b = 2;
            int rootcount = 0;
            double tochnost = 0.00001;
            for (double x = a; x <= b; x += tochnost)
            {
                if (Math.Abs(f(x)) <= 0.00001)
                {
                    rootcount++;
                    Console.WriteLine("x = {0}", x);
                }

            }
            if (rootcount == 0) { Console.WriteLine("Nety koreniv"); }
            Console.ReadKey();

        }
    }
}


====================================