The teacher will be very surprised to see your correct solution 😉
-pi x1 = ---- 2
pi x2 = -- 2
x2 = pi/2
sum
pi pi - -- + -- 2 2
=
0
product
-pi pi ----*-- 2 2
=
2 -pi ----- 4
-pi^2/4
x1 = 7.85398163397448
x2 = -73.8274273593601
x3 = -54.9778714378214
x4 = -26.7035375555132
x5 = -1.5707963267949
x6 = -95.8185759344887
x7 = -39.2699081698724
x8 = -4.71238898038469
x9 = 14.1371669411541
x10 = 10.9955742875643
x11 = -36.1283155162826
x12 = -92.6769832808989
x13 = -86.3937979737193
x14 = -10.9955742875643
x15 = -32.9867228626928
x16 = -7.85398163397448
x17 = -58.1194640914112
x18 = -67.5442420521806
x19 = -61.261056745001
x20 = -48.6946861306418
x21 = -42.4115008234622
x22 = -89.5353906273091
x23 = -98.9601685880785
x24 = -14.1371669411541
x25 = -64.4026493985908
x26 = 1.5707963267949
x27 = -17.2787595947439
x28 = 4.71238898038469
x29 = -45.553093477052
x30 = 17.2787595947439
x31 = -83.2522053201295
x32 = -20.4203522483337
x33 = -80.1106126665397
x34 = -23.5619449019235
x35 = -102.101761241668
x36 = -51.8362787842316
x37 = -70.6858347057703
x38 = -29.845130209103
x39 = -76.9690200129499
x39 = -76.9690200129499