Найду корень уравнения: cos^2x=cosx
a*w^2 + b*w + c = 0
D = b^2 - 4 * a * c =
(-1)^2 - 4 * (1) * (0) = 1
w1 = (-b + sqrt(D)) / (2*a)
w2 = (-b - sqrt(D)) / (2*a)
сумма
pi 3*pi 0 + 0 + -- + ---- + 2*pi 2 2
=
4*pi
произведение
pi 3*pi 1*0*--*----*2*pi 2 2
=
0
x1 = 0
pi x2 = -- 2
3*pi x3 = ---- 2
x4 = 2*pi
x1 = 64.4026493985908
x2 = 39.2699081698724
x3 = 54.9778714378214
x4 = 25.1327418085792
x5 = 73.8274273593601
x6 = 89.5353906273091
x7 = -12.5663704469816
x8 = -87.964594358935
x9 = -26.7035375555132
x10 = -76.9690200129499
x11 = 48.6946861306418
x12 = 80.1106126665397
x13 = 83.2522053201295
x14 = 10.9955742875643
x15 = -89.5353906273091
x16 = -58.1194640914112
x17 = 23.5619449019235
x18 = 92.6769832808989
x19 = 36.1283155162826
x20 = 4.71238898038469
x21 = 94.2477796093526
x22 = -81.6814090377756
x23 = 26.7035375555132
x24 = -51.8362787842316
x25 = -1.5707963267949
x26 = -6.28318514935383
x27 = -23.5619449019235
x28 = 75.3982238342404
x29 = 76.9690200129499
x30 = -45.553093477052
x31 = 32.9867228626928
x32 = -54.9778714378214
x33 = -25.1327413641924
x34 = 69.1150379836781
x35 = -73.8274273593601
x36 = -14.1371669411541
x37 = 58.1194640914112
x38 = -48.6946861306418
x39 = -75.3982238479311
x40 = 17.2787595947439
x41 = -69.115038497193
x42 = -37.6991118770355
x43 = -17.2787595947439
x44 = -56.5486675907774
x45 = 51.8362787842316
x46 = 87.9645943356049
x47 = 6.28318528429551
x48 = 62.8318529132021
x49 = 81.6814091609407
x50 = -18.8495562409837
x51 = 100.530964774136
x52 = 43.9822971693881
x53 = 70.6858347057703
x54 = -83.2522053201295
x55 = 98.9601685880785
x56 = -7.85398163397448
x57 = 7.85398163397448
x58 = 37.6991120060109
x59 = -92.6769832808989
x60 = -67.5442420521806
x61 = -29.845130209103
x62 = -62.8318534973011
x63 = 45.553093477052
x64 = -70.6858347057703
x65 = -389.557489134924
x66 = -31.4159266930206
x67 = 50.2654824463558
x68 = -50.2654823051418
x69 = -42.4115008234622
x70 = 95.8185759344887
x71 = 31.4159266948554
x72 = 1.5707963267949
x73 = -20.4203522483337
x74 = 61.261056745001
x75 = 86.3937979737193
x76 = -10.9955742875643
x77 = 14.1371669411541
x78 = -80.1106126665397
x79 = 56.5486676180351
x80 = -43.9822971746199
x81 = 0.0
x82 = 29.845130209103
x83 = 69.1150385134118
x84 = 42.4115008234622
x85 = -94.2477794613449
x86 = -100.530964736174
x87 = -86.3937979737193
x88 = -39.2699081698724
x89 = -95.8185759344887
x90 = 18.8495557729205
x91 = -98.9601685880785
x92 = -32.9867228626928
x93 = 20.4203522483337
x94 = -4.71238898038469
x95 = -36.1283155162826
x96 = 25.1327408583892
x97 = 12.5663704623094