The teacher will be very surprised to see your correct solution 😉
3 3*tan(x) + 3 = ------- 2 cos (x)
x1 = 0
-3*pi x2 = ----- 4
pi x3 = -- 4
x4 = pi
x4 = pi
sum
3*pi pi - ---- + -- + pi 4 4
=
pi -- 2
product
-3*pi pi 0*-----*--*pi 4 4
=
0
0
x1 = -18.8495559215388
x2 = 25.9181393921158
x3 = -15.707963267949
x4 = -56.5486677646163
x5 = -31.4159265358979
x6 = 84.8230016469244
x7 = 21.9911485751286
x8 = -99.7455667514759
x9 = 0.0
x10 = -90.3207887907066
x11 = -96.6039740978861
x12 = -21.9911485751286
x13 = 28.2743338823081
x14 = 72.2566310325652
x15 = -94.2477796076938
x16 = -40.8407044966673
x17 = -25.1327412287183
x18 = 87.9645943005142
x19 = -77.7544181763474
x20 = -50.2654824574367
x21 = -43.9822971502571
x22 = -97.3893722612836
x23 = 50.2654824574367
x24 = 76.1836218495525
x25 = 54.1924732744239
x26 = -91.106186954104
x27 = -62.0464549083984
x28 = 91.8915851175014
x29 = -53.4070751110265
x30 = 63.6172512351933
x31 = 85.6083998103219
x32 = -33.7721210260903
x33 = -8.63937979737193
x34 = 10.2101761241668
x35 = 12.5663706143592
x36 = -81.6814089933346
x37 = 94.2477796076938
x38 = 81.6814089933346
x39 = -30.6305283725005
x40 = 31.4159265358979
x41 = 53.4070751110265
x42 = -28.2743338823081
x43 = -40.0553063332699
x44 = 69.1150383789755
x45 = -72.2566310325652
x46 = 37.6991118430775
x47 = 9.42477796076938
x48 = 65.9734457253857
x49 = -84.8230016469244
x50 = 98.174770424681
x51 = 35.3429173528852
x52 = 3.14159265358979
x53 = -87.9645943005142
x54 = 40.8407044966673
x55 = -24.3473430653209
x56 = -78.5398163397448
x57 = 62.8318530717959
x58 = 47.1238898038469
x59 = 16.4933614313464
x60 = 3.92699081698724
x61 = 91.106186954104
x62 = -46.3384916404494
x63 = 78.5398163397448
x64 = 25.1327412287183
x65 = -3.14159265358979
x66 = 56.5486677646163
x67 = -74.6128255227576
x68 = -2.35619449019234
x69 = 41.6261026600648
x70 = -55.7632696012188
x71 = -84.037603483527
x72 = -62.8318530717959
x73 = -69.1150383789755
x74 = -65.9734457253857
x75 = -11.7809724509617
x76 = -34.5575191894877
x77 = 43.9822971502571
x78 = -37.6991118430775
x79 = -52.621676947629
x80 = -59.6902604182061
x81 = -75.398223686155
x82 = 100.530964914873
x83 = 75.398223686155
x84 = 34.5575191894877
x85 = 6.28318530717959
x86 = -47.1238898038469
x87 = 32.2013246992954
x88 = 18.8495559215388
x89 = 13.3517687777566
x90 = -9.42477796076938
x91 = 97.3893722612836
x92 = 47.9092879672443
x93 = 69.9004365423729
x94 = -12.5663706143592
x95 = -68.329640215578
x96 = 19.6349540849362
x97 = -21.2057504117311
x98 = -18.0641577581413
x98 = -18.0641577581413