In MongoDB, the $acos
aggregation pipeline operator returns the arccosine (inverse cosine) of a value, measured in radians.
$acos
accepts any valid expression that resolves to a number between -1
and 1
.
The $acos
operator was introduced in MongoDB 4.2.