About 95% of the servo problems reported on this forum are due to inadequate servo power supplies. Make sure to use a separate power supply, capable of 1 Ampere per servo for small servos (e.g. SG90) and 2.5 Amperes per servo for large (e.g. MG996R).
acos() returns a value between 0 and 3.14159265…, so that expression will have values between -90 and -86.858... no so good for the servo, which may constrain the value and end up using zero.
which @water_28 might see if the values were printed. It might have been a clue.
Better to the point, you should have read the documentation for the maths functions, where you would have seen the units used in the arguments and return values.
Radians are used almost exclusively in maths libraries; there will usually be functions to convert between degrees and radians, as well as a good enough constant for the ratio of a circle's circumference to its diameter. Like 22/7.
And please take away the sink,est method for investigating things that aren't behaving: use copious printing to see the values of variables including intermediate expressions, that they are plausible and are properly informing the flow through your code.
Here in particular, if a servo isn't doing what you think it should, confirm that you are telling it what you think.