El profesor se sorprenderá mucho al ver tu solución correcta😉
cos(x) - 2*cos(3*x) + cos(5*x) = 0
suma
5*pi pi pi pi pi 5*pi - ---- - -- - -- + -- + -- + ---- + pi 6 2 6 6 2 6
=
pi
producto
-5*pi -pi -pi pi pi 5*pi 0*-----*----*----*--*--*----*pi 6 2 6 6 2 6
=
0
0
x1 = 0
-5*pi x2 = ----- 6
-pi x3 = ---- 2
-pi x4 = ---- 6
pi x5 = -- 6
pi x6 = -- 2
5*pi x7 = ---- 6
x8 = pi
x8 = pi
x1 = 86.3937979737193
x2 = 9.94837673636768
x3 = -7.85398163397448
x4 = 21.99114858497
x5 = -31.9395253114962
x6 = -25.6563400043166
x7 = -58.1194640914112
x8 = -84.8230018025686
x9 = -45.553093477052
x10 = 64.4026493985908
x11 = -29.845130209103
x12 = 84.2994028713261
x13 = 94.2477796093558
x14 = -65.9734457670841
x15 = 42.4115008234622
x16 = 87.9645943321768
x17 = -40.317105721069
x18 = -93.7241808320955
x19 = -18.3259571459405
x20 = 25.6563400043166
x21 = 95.8185759344887
x22 = 58.1194640914112
x23 = -73.8274273593601
x24 = -27.7507351067098
x25 = 7.85398163397448
x26 = 18.3259571459405
x27 = 0.0
x28 = 16.2315620435473
x29 = -91.6297857297023
x30 = 24.60914245312
x31 = -47.6474885794452
x32 = -40.8407043188967
x33 = 62.3082542961976
x34 = 46.6002910282486
x35 = -81.6814090319788
x36 = -67.5442420521806
x37 = 20.4203522483337
x38 = 91.6297857297023
x39 = -5.75958653158129
x40 = -15.707963294695
x41 = -43.9822971755034
x42 = -14.1371669411541
x43 = 53.9306738866248
x44 = -87.9645943623088
x45 = -37.6991118742693
x46 = 29.845130209103
x47 = -100.007366139275
x48 = -69.6386371545737
x49 = -75.9218224617533
x50 = -56.025068989018
x51 = 60.2138591938044
x52 = 82.2050077689329
x53 = -21.9911485866816
x54 = 90.5825881785057
x55 = 80.1106126665397
x56 = 38.2227106186758
x57 = 31.9395253114962
x58 = 34.0339204138894
x59 = -78.0162175641465
x60 = 69.6386371545737
x61 = -34.0339204138894
x62 = -97.9129710368819
x63 = -95.8185759344887
x64 = -36.1283155162826
x65 = 97.9129710368819
x66 = -12.0427718387609
x67 = 51.8362787842316
x68 = -53.9306738866248
x69 = 50.2654824465434
x70 = 3.66519142918809
x71 = -71.733032256967
x72 = 47.6474885794452
x73 = 72.2566310277517
x74 = -1.5707963267949
x75 = 78.0162175641465
x76 = -59.6902604533793
x77 = 2.61799387799149
x78 = 28.2743338657283
x79 = -3.66519142918809
x80 = 65.9734457508807
x81 = -84.2994028713261
x82 = -51.8362787842316
x83 = 40.317105721069
x84 = 12.0427718387609
x85 = -62.8318532300879
x86 = 36.1283155162826
x87 = -9.94837673636768
x88 = 100.007366139275
x89 = 6.2831852853113
x90 = -23.5619449019235
x91 = 56.025068989018
x92 = -49.7418836818384
x93 = 73.8274273593601
x94 = 14.1371669411541
x95 = 43.9822971685271
x96 = -89.5353906273091
x97 = -62.3082542961976
x98 = 68.5914396033772
x99 = -80.1106126665397
x100 = 75.9218224617533
x100 = 75.9218224617533