Найду корень уравнения: cos(2x)-cos(x)=0
a*w^2 + b*w + c = 0
D = b^2 - 4 * a * c =
(-1)^2 - 4 * (2) * (-1) = 9
w1 = (-b + sqrt(D)) / (2*a)
w2 = (-b - sqrt(D)) / (2*a)
x1 = 0
-4*pi x2 = ----- 3
-2*pi x3 = ----- 3
2*pi x4 = ---- 3
4*pi x5 = ---- 3
x6 = 2*pi
сумма
4*pi 2*pi 2*pi 4*pi 0 + 0 - ---- - ---- + ---- + ---- + 2*pi 3 3 3 3
=
2*pi
произведение
-4*pi -2*pi 2*pi 4*pi 1*0*-----*-----*----*----*2*pi 3 3 3 3
=
0
x1 = 77.4926187885482
x2 = -10.471975511966
x3 = -92.1533845053006
x4 = 16.7551608191456
x5 = 25.1327411125589
x6 = 48.1710873550435
x7 = 50.2654824463501
x8 = 43.9822971694142
x9 = -6.28318514161788
x10 = -50.2654822985064
x11 = -29.3215314335047
x12 = -18.8495558711096
x13 = 90.0589894029074
x14 = 12.5663704551863
x15 = 87.9645943357073
x16 = 35.6047167406843
x17 = 37.6991120149696
x18 = 41.8879020478639
x19 = 12.5663700882745
x20 = -25.1327414474833
x21 = -31.4159267013407
x22 = -18.8495558006412
x23 = -96.342174710087
x24 = -83.7758040957278
x25 = 92.1533845053006
x26 = -77.4926187885482
x27 = -46.0766922526503
x28 = 85.870199198121
x29 = 83.7758040957278
x30 = 58.6430628670095
x31 = 33.5103216382911
x32 = -18.8495558410301
x33 = -4.18879020478639
x34 = 8.37758040957278
x35 = 10.471975511966
x36 = 25.1327412731354
x37 = 62.8318528532238
x38 = 100.530964769014
x39 = -37.6991118771132
x40 = -100.530964690899
x41 = 94.2477796093525
x42 = -81.6814090379303
x43 = -73.3038285837618
x44 = 69.115037832119
x45 = 98.4365698124802
x46 = 69.1150383780256
x47 = -52.3598775598299
x48 = 43.9822969706241
x49 = 79.5870138909414
x50 = 75.3982239117447
x51 = -87.9645943588266
x52 = -94.2477794556977
x53 = 6.28318528426584
x54 = 25.13274122338
x55 = 31.4159267619367
x56 = -79.5870138909414
x57 = -75.3982238575994
x58 = 4.18879020478639
x59 = 0.0
x60 = 14.6607657167524
x61 = -85.870199198121
x62 = 25.1327417460082
x63 = 52.3598775598299
x64 = -8.37758040957278
x65 = -54.4542726622231
x66 = 46.0766922526503
x67 = 69.1150384283402
x68 = 60.7374579694027
x69 = -69.1150385967809
x70 = -33.5103216382911
x71 = -43.9822971745925
x72 = -71.2094334813686
x73 = -12.5663703884691
x74 = -39.7935069454707
x75 = 54.4542726622231
x76 = -98.4365698124802
x77 = 18.8495557025416
x78 = 56.5486676119735
x79 = 96.342174710087
x80 = -62.8318529623378
x81 = -56.5486675394273
x82 = -90.0589894029074
x83 = 69.1150383295746
x84 = -69.11503909537
x85 = -62.8318529503654
x86 = -48.1710873550435
x87 = 39.7935069454707
x88 = -35.6047167406843
x89 = -18.8495555012277
x90 = -27.2271363311115
x91 = 81.6814091712551
x92 = -41.8879020478639
x93 = -2.0943951023932
x94 = -62.8318537995483
x95 = 2.0943951023932