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 ====================================

	
Âàøà â³äïîâ³äü