The teacher will be very surprised to see your correct solution 😉
tan(x) ------ - cos(x) = 0 sin(x)
x1 = -59.6902604579627
x2 = -37.6991118773749
x3 = 12.5663704329274
x4 = 3.14159332506585
x5 = 50.265482446331
x6 = -62.8318524378967
x7 = -34.5575188250568
x8 = 53.4070755022832
x9 = -65.9734457648377
x10 = -84.8230023359423
x11 = 59.6902606242892
x12 = 25.1327406025294
x13 = -6.28318511636354
x14 = 15.7079634638398
x15 = -15.7079632966714
x16 = -18.8495552629365
x17 = 37.6991120440566
x18 = -78.5398159881807
x19 = -40.8407051595079
x20 = -28.2743336965558
x21 = -91.1061873420292
x22 = -97.3893724672266
x23 = 75.3982240843678
x24 = -12.5663702433638
x25 = 47.1238891892412
x26 = -31.4159267270698
x27 = 21.9911485852154
x28 = -87.9645943584581
x29 = 28.274333865158
x30 = 100.530964752721
x31 = -69.1150387601409
x32 = -9.42477814706151
x33 = -94.2477794370922
x34 = 69.1150377756597
x35 = 91.1061876809771
x36 = -72.2566308569174
x37 = -43.9822971744994
x38 = 9.42477833842133
x39 = 72.2566310277163
x40 = 25.1327419134392
x41 = -25.1327415966545
x42 = 91.1061863617978
x43 = 87.9645943360531
x44 = 65.9734457530652
x45 = 81.6814092045399
x46 = 97.3893726665604
x47 = 40.8407041479024
x48 = -47.1238901783506
x49 = -40.8407038505852
x50 = -62.8318537475395
x51 = 34.5575190128984
x52 = 69.1150390913744
x53 = 47.1238905022021
x54 = -53.4070753070989
x55 = 94.2477796093522
x56 = -75.3982238871507
x57 = -21.9911485864319
x58 = 56.5486675928533
x59 = 6.28318528416575
x60 = -18.8495565718301
x61 = 3.14159201551055
x62 = 78.5398161727936
x63 = 62.8318527292552
x64 = -81.6814090384499
x65 = 18.8495555664687
x66 = 31.4159269203024
x67 = 84.82300131053
x68 = -3.14159301504925
x69 = -50.2654822767396
x70 = -56.5486674066613
x71 = -84.8230010248866
x72 = -100.530964569618
x73 = 43.9822971695024
x73 = 43.9822971695024