In MongoDB, the $atan
aggregation pipeline operator returns the arctangent (inverse tangent) of a value.
The return value is in radians.
$atan
accepts any valid expression that resolves to a number.
The $atan
operator was introduced in MongoDB 4.2.