GVA SUPPORT

³ 1296029642
Text:
	Բ = 

 :   y=x*cos(2sin(x))  [0:2]


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


 ANSWER ====================================

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

namespace ConsoleApplication1
{
    class Program
    {
        static double f(double x)
        {
            return x * Math.Cos(2*Math.Sin(x));
        }
        static void Main(string[] args)
        {
            double a = 0, b = 2;
            int rootcount = 0;
            double tochnost = 0.0001;
            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();

        }
    }
}
//  .  .   !!!! ...


 END of ANSWER ====================================