El profesor se sorprenderá mucho al ver tu solución correcta😉
2 - 4*sin (x) - 2*sin(x) + 2 = 0
a*w^2 + b*w + c = 0
D = b^2 - 4 * a * c =
(-2)^2 - 4 * (-4) * (2) = 36
w1 = (-b + sqrt(D)) / (2*a)
w2 = (-b - sqrt(D)) / (2*a)
-pi x1 = ---- 2
pi x2 = -- 6
5*pi x3 = ---- 6
3*pi x4 = ---- 2
x4 = 3*pi/2
suma
pi pi 5*pi 3*pi - -- + -- + ---- + ---- 2 6 6 2
=
2*pi
producto
-pi pi 5*pi 3*pi ----*--*----*---- 2 6 6 2
=
4 -5*pi ------ 48
-5*pi^4/48
x1 = 82.2050077689329
x2 = -26.7035373476123
x3 = 2.61799387799149
x4 = 80.1106131458253
x5 = 73.8274274783337
x6 = -76.9690198122422
x7 = -18.3259571459405
x8 = 44.5058959258554
x9 = 29.8451303193672
x10 = 96.8657734856853
x11 = -49.7418836818384
x12 = -95.8185758681551
x13 = 25.6563400043166
x14 = -20.4203520418601
x15 = 17.2787597959772
x16 = -76.9690201780717
x17 = -85.3466004225227
x18 = -39.2699083757319
x19 = -47.6474885794452
x20 = -32.9867230405965
x21 = -76.9690204511548
x22 = 71.733032256967
x23 = -83.2522055292846
x24 = -79.0634151153431
x25 = -51.8362786898924
x26 = 38.2227106186758
x27 = -32.98672341235
x28 = -68.5914396033772
x29 = 88.4881930761125
x30 = 34.0339204138894
x31 = 98.9601683847854
x32 = -62.3082542961976
x33 = -58.1194639999037
x34 = 92.6769830871924
x35 = 36.1283159916529
x36 = 4.71238877821279
x37 = -16.2315620435473
x38 = 54.9778712411975
x39 = -93.7241808320955
x40 = 63.3554518473942
x41 = 75.9218224617533
x42 = 69.6386371545737
x43 = -70.6858344924983
x44 = 90.5825881785057
x45 = -60.2138591938044
x46 = 86.393797888715
x47 = -43.4586983746588
x48 = -87.4409955249159
x49 = -91.6297857297023
x50 = 10.9955740992967
x51 = -22.5147473507269
x52 = 27.7507351067098
x53 = -12.0427718387609
x54 = 8.90117918517108
x55 = -64.4026491963026
x56 = -56.025068989018
x57 = 78.0162175641465
x58 = -24.60914245312
x59 = 94.7713783832921
x60 = 46.6002910282486
x61 = 10.995574056153
x62 = -9.94837673636768
x63 = -41.3643032722656
x64 = 52.8834763354282
x65 = -100.007366139275
x66 = -45.5530935873709
x67 = 67.5442422659503
x68 = 19.3731546971371
x69 = -89.5353907455655
x70 = -7.85398149924071
x71 = 42.4115007297604
x72 = -14.1371668400256
x73 = 40.317105721069
x74 = -97.9129710368819
x75 = -35.081117965086
x76 = 23.5619451122289
x77 = -53.9306738866248
x78 = -95.8185760435073
x79 = 31.9395253114962
x80 = -3.66519142918809
x81 = 0.523598775598299
x82 = 61.2610569380464
x83 = 84.2994028713261
x84 = -66.497044500984
x85 = -1.57079642893127
x86 = 48.6946859325274
x87 = -5.75958653158129
x87 = -5.75958653158129