arccos is Lipschitz away from ±1 (RC6b, step 2) #
A fat triangle has all its angles in [κ, π - κ], so the cosines of its angles stay in [-s, s]
with s = cos κ < 1. On that interval arccos is Lipschitz with constant 1 / √(1 - s²). This is
the sensitivity estimate that turns a relative error of the squared edge lengths into an error of
the angles.
Main results #
abs_cosArg_sub_le: if the squared lengthsa, b, cof a triangle witha + b ≤ R √(a b)and|a + b - c| ≤ 2 √(a b)change by relative errors at mostε ≤ 1/2, the cosine(a + b - c) / (2 √(a b))changes by at most2 (R + 1) ε.abs_arccos_sub_arccos_le: forx, y ∈ [-s, s]with0 ≤ s < 1,|arccos x - arccos y| ≤ |x - y| / √(1 - s²).
Sensitivity of the cosine to relative errors of the squared lengths. The squared lengths
a, b (adjacent edges) change to a', b' by at most the relative error ε ≤ 1/2, the opposite
one c to c' by at most ε (a + b). If the triangle has a + b ≤ R √(a b) (bounded side ratio)
and a genuine angle, |a + b - c| ≤ 2 √(a b), then the cosine of its angle changes by at most
2 (R + 1) ε.
The angle of a fat triangle is Lipschitz in the squared lengths. Under the hypotheses of
abs_cosArg_sub_le, if the cosines of the angle before and after lie in [-s, s], s < 1
(the angle is in [arccos s, π - arccos s]), the angle changes by at most
2 (R + 1) ε / √(1 - s²).