neosqlite.collection.expr_evaluator.python_evaluators.math_ops module¶
Math, arithmetic, trigonometric, and angle Python evaluators.
- class neosqlite.collection.expr_evaluator.python_evaluators.math_ops.MathPythonMixin[source]¶
Bases:
BasePythonMixinArithmetic, math, trig, and angle conversion operators.
- _log2_warned: bool¶
- _evaluate_arithmetic_python(operator: str, operands: list[Any], document: dict[str, Any]) float | None[source]¶
Evaluate arithmetic operators in Python.
Note: In MongoDB, arithmetic operations with null return null.
- _evaluate_math_python(operator: str, operands: list[Any], document: dict[str, Any]) float | None[source]¶
Evaluate math operators in Python.
- _evaluate_pow_python(operands: list[Any], document: dict[str, Any]) float | None[source]¶
Evaluate $pow operator in Python.
- _evaluate_sqrt_python(operands: list[Any], document: dict[str, Any]) float | None[source]¶
Evaluate $sqrt operator in Python.