El profesor se sorprenderá mucho al ver tu solución correcta😉
cos(x)*(1 - cos(x)) = 0
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)
x1 = 0
pi x2 = -- 2
3*pi x3 = ---- 2
x4 = 2*pi
x4 = 2*pi
suma
pi 3*pi -- + ---- + 2*pi 2 2
=
4*pi
producto
pi 3*pi 0*--*----*2*pi 2 2
=
0
0
x1 = 81.6814091609407
x2 = -98.9601685880785
x3 = 86.3937979737193
x4 = -48.6946861306418
x5 = 42.4115008234622
x6 = 73.8274273593601
x7 = 45.553093477052
x8 = 89.5353906273091
x9 = 76.9690200129499
x10 = -100.530964736174
x11 = -1.5707963267949
x12 = -58.1194640914112
x13 = -50.2654823051418
x14 = 62.8318529132021
x15 = -87.964594358935
x16 = -51.8362787842316
x17 = 7.85398163397448
x18 = -86.3937979737193
x19 = 58.1194640914112
x20 = 23.5619449019235
x21 = -67.5442420521806
x22 = 69.1150379836781
x23 = 50.2654824463558
x24 = 69.1150385134118
x25 = -43.9822971746199
x26 = -70.6858347057703
x27 = 56.5486676180351
x28 = 6.28318528429551
x29 = -95.8185759344887
x30 = -81.6814090377756
x31 = 87.9645943356049
x32 = -389.557489134924
x33 = 29.845130209103
x34 = 43.9822971693881
x35 = 80.1106126665397
x36 = 54.9778714378214
x37 = -76.9690200129499
x38 = 61.261056745001
x39 = -18.8495562409837
x40 = -69.115038497193
x41 = -80.1106126665397
x42 = 51.8362787842316
x43 = -29.845130209103
x44 = -37.6991118770355
x45 = -75.3982238479311
x46 = -20.4203522483337
x47 = -62.8318534973011
x48 = -6.28318514935383
x49 = 18.8495557729205
x50 = -31.4159266930206
x51 = -12.5663704469816
x52 = -17.2787595947439
x53 = 20.4203522483337
x54 = 14.1371669411541
x55 = -26.7035375555132
x56 = 31.4159266948554
x57 = 4.71238898038469
x58 = 70.6858347057703
x59 = -94.2477794613449
x60 = 32.9867228626928
x61 = -23.5619449019235
x62 = -83.2522053201295
x63 = -36.1283155162826
x64 = 1.5707963267949
x65 = -56.5486675907774
x66 = -92.6769832808989
x67 = 36.1283155162826
x68 = -25.1327413641924
x69 = 17.2787595947439
x70 = 10.9955742875643
x71 = 75.3982238342404
x72 = 95.8185759344887
x73 = -14.1371669411541
x74 = -4.71238898038469
x75 = 0.0
x76 = 83.2522053201295
x77 = -39.2699081698724
x78 = 98.9601685880785
x79 = 94.2477796093526
x80 = 37.6991120060109
x81 = 26.7035375555132
x82 = -89.5353906273091
x83 = 48.6946861306418
x84 = -32.9867228626928
x85 = 39.2699081698724
x86 = -7.85398163397448
x87 = 100.530964774136
x88 = 64.4026493985908
x89 = 12.5663704623094
x90 = -10.9955742875643
x91 = 25.1327408583892
x92 = -73.8274273593601
x93 = -54.9778714378214
x94 = 25.1327418085792
x95 = 92.6769832808989
x96 = -45.553093477052
x97 = -42.4115008234622
x97 = -42.4115008234622