MagicDotPath trigonometric functions

All trigonometric functions for MagicDotPath.

acos(mdp)

Acos function for a MagicDotPath.

From psql docs: Inverse cosine, result in radians.

See: https://www.postgresql.org/docs/current/functions-math.html

Parameters:
  • mdp (BaseMagicDotPath) – MagicDotPath on which we apply the acos.

Returns:
  • MagicDotPathWithOp – MagicDotPathWithOp with one operand and on the correct operator.

Source code in py_linq_sql/utils/functions/magic_dp_trigo_functions.py
def acos(mdp: BaseMagicDotPath) -> MagicDotPathWithOp:
    """
    Acos function for a MagicDotPath.

    From psql docs: Inverse cosine, result in radians.

    See: https://www.postgresql.org/docs/current/functions-math.html

    Args:
        mdp: MagicDotPath on which we apply the acos.

    Returns:
        MagicDotPathWithOp with one operand and on the correct operator.
    """
    return mdp._get_one_operand_operator(  # pylint: disable=protected-access
        TrigoFunctType.ACOS,
    )

acosd(mdp)

Acosd function for a MagicDotPath.

From psql docs: Inverse cosine, result in degrees.

See: https://www.postgresql.org/docs/current/functions-math.html

Parameters:
  • mdp (BaseMagicDotPath) – MagicDotPath on which we apply the acosd.

Returns:
  • MagicDotPathWithOp – MagicDotPathWithOp with one operand and on the correct operator.

Source code in py_linq_sql/utils/functions/magic_dp_trigo_functions.py
def acosd(mdp: BaseMagicDotPath) -> MagicDotPathWithOp:
    """
    Acosd function for a MagicDotPath.

    From psql docs: Inverse cosine, result in degrees.

    See: https://www.postgresql.org/docs/current/functions-math.html

    Args:
        mdp: MagicDotPath on which we apply the acosd.

    Returns:
        MagicDotPathWithOp with one operand and on the correct operator.
    """
    return mdp._get_one_operand_operator(  # pylint: disable=protected-access
        TrigoFunctType.ACOSD,
    )

asin(mdp)

Asin function for a MagicDotPath.

From psql docs: Inverse sine, result in radians.

See: https://www.postgresql.org/docs/current/functions-math.html

Parameters:
  • mdp (BaseMagicDotPath) – MagicDotPath on which we apply the asin.

Returns:
  • MagicDotPathWithOp – MagicDotPathWithOp with one operand and on the correct operator.

Source code in py_linq_sql/utils/functions/magic_dp_trigo_functions.py
def asin(mdp: BaseMagicDotPath) -> MagicDotPathWithOp:
    """
    Asin function for a MagicDotPath.

    From psql docs: Inverse sine, result in radians.

    See: https://www.postgresql.org/docs/current/functions-math.html

    Args:
        mdp: MagicDotPath on which we apply the asin.

    Returns:
        MagicDotPathWithOp with one operand and on the correct operator.
    """
    return mdp._get_one_operand_operator(  # pylint: disable=protected-access
        TrigoFunctType.ASIN,
    )

asind(mdp)

Asind function for a MagicDotPath.

From psql docs: Inverse sine, result in degrees.

See: https://www.postgresql.org/docs/current/functions-math.html

Parameters:
  • mdp (BaseMagicDotPath) – MagicDotPath on which we apply the asind.

Returns:
  • MagicDotPathWithOp – MagicDotPathWithOp with one operand and on the correct operator.

Source code in py_linq_sql/utils/functions/magic_dp_trigo_functions.py
def asind(mdp: BaseMagicDotPath) -> MagicDotPathWithOp:
    """
    Asind function for a MagicDotPath.

    From psql docs: Inverse sine, result in degrees.

    See: https://www.postgresql.org/docs/current/functions-math.html

    Args:
        mdp: MagicDotPath on which we apply the asind.

    Returns:
        MagicDotPathWithOp with one operand and on the correct operator.
    """
    return mdp._get_one_operand_operator(  # pylint: disable=protected-access
        TrigoFunctType.ASIND,
    )

atan(mdp)

Atan function for a MagicDotPath.

From psql docs: Inverse tangent, result in radians.

See: https://www.postgresql.org/docs/current/functions-math.html

Parameters:
  • mdp (BaseMagicDotPath) – MagicDotPath on which we apply the atan.

Returns:
  • MagicDotPathWithOp – MagicDotPathWithOp with one operand and on the correct operator.

Source code in py_linq_sql/utils/functions/magic_dp_trigo_functions.py
def atan(mdp: BaseMagicDotPath) -> MagicDotPathWithOp:
    """
    Atan function for a MagicDotPath.

    From psql docs: Inverse tangent, result in radians.

    See: https://www.postgresql.org/docs/current/functions-math.html

    Args:
        mdp: MagicDotPath on which we apply the atan.

    Returns:
        MagicDotPathWithOp with one operand and on the correct operator.
    """
    return mdp._get_one_operand_operator(  # pylint: disable=protected-access
        TrigoFunctType.ATAN,
    )

atan2(mdp, other)

Atan2 function for a MagicDotPath.

From psql docs: Inverse tangent of y/x, result in radians.

See: https://www.postgresql.org/docs/current/functions-math.html

Parameters:
  • mdp (BaseMagicDotPath) – MagicDotPath representing x.

  • other (float | int | decimal.Decimal) – number representing y.

Returns:
  • MagicDotPathWithOp – MagicDotPathWithOp with one operand and on the correct operator.

Exceptions:
  • TypeOperatorError – Indirect raise by BaseMagicDotPath._get_number_operator

Source code in py_linq_sql/utils/functions/magic_dp_trigo_functions.py
def atan2(mdp: BaseMagicDotPath, other: _NUMBER_TYPE) -> MagicDotPathWithOp:
    """
    Atan2 function for a MagicDotPath.

    From psql docs: Inverse tangent of y/x, result in radians.

    See: https://www.postgresql.org/docs/current/functions-math.html

    Args:
        mdp: MagicDotPath representing x.
        other: number representing y.

    Returns:
        MagicDotPathWithOp with one operand and on the correct operator.

    Raises:
        TypeOperatorError: Indirect raise by `BaseMagicDotPath._get_number_operator`
    """
    return mdp._get_number_operator(  # pylint: disable=protected-access
        other,
        TrigoFunctType.ATAN2,
    )

atan2d(mdp, other)

Atan2d function for a MagicDotPath.

From psql docs: Inverse tangent of y/x, result in degrees.

See: https://www.postgresql.org/docs/current/functions-math.html

Parameters:
  • mdp (BaseMagicDotPath) – MagicDotPath representing x.

  • other (float | int | decimal.Decimal) – number representing y.

Returns:
  • MagicDotPathWithOp – MagicDotPathWithOp with one operand and on the correct operator.

Exceptions:
  • TypeOperatorError – Indirect raise by BaseMagicDotPath._get_number_operator

Source code in py_linq_sql/utils/functions/magic_dp_trigo_functions.py
def atan2d(mdp: BaseMagicDotPath, other: _NUMBER_TYPE) -> MagicDotPathWithOp:
    """
    Atan2d function for a MagicDotPath.

    From psql docs: Inverse tangent of y/x, result in degrees.

    See: https://www.postgresql.org/docs/current/functions-math.html

    Args:
        mdp: MagicDotPath representing x.
        other: number representing y.

    Returns:
        MagicDotPathWithOp with one operand and on the correct operator.

    Raises:
        TypeOperatorError: Indirect raise by `BaseMagicDotPath._get_number_operator`
    """
    return mdp._get_number_operator(  # pylint: disable=protected-access
        other,
        TrigoFunctType.ATAN2D,
    )

atand(mdp)

Atand function for a MagicDotPath.

From psql docs: Inverse tangent, result in degrees.

See: https://www.postgresql.org/docs/current/functions-math.html

Parameters:
  • mdp (BaseMagicDotPath) – MagicDotPath on which we apply the atand.

Returns:
  • MagicDotPathWithOp – MagicDotPathWithOp with one operand and on the correct operator.

Source code in py_linq_sql/utils/functions/magic_dp_trigo_functions.py
def atand(mdp: BaseMagicDotPath) -> MagicDotPathWithOp:
    """
    Atand function for a MagicDotPath.

    From psql docs: Inverse tangent, result in degrees.

    See: https://www.postgresql.org/docs/current/functions-math.html

    Args:
        mdp: MagicDotPath on which we apply the atand.

    Returns:
        MagicDotPathWithOp with one operand and on the correct operator.
    """
    return mdp._get_one_operand_operator(  # pylint: disable=protected-access
        TrigoFunctType.ATAND,
    )

cos(mdp)

Cos function for a MagicDotPath.

From psql docs: Cosine, argument in radians.

See: https://www.postgresql.org/docs/current/functions-math.html

Parameters:
  • mdp (BaseMagicDotPath) – MagicDotPath on which we apply the cos.

Returns:
  • MagicDotPathWithOp – MagicDotPathWithOp with one operand and on the correct operator.

Source code in py_linq_sql/utils/functions/magic_dp_trigo_functions.py
def cos(mdp: BaseMagicDotPath) -> MagicDotPathWithOp:
    """
    Cos function for a MagicDotPath.

    From psql docs: Cosine, argument in radians.

    See: https://www.postgresql.org/docs/current/functions-math.html

    Args:
        mdp: MagicDotPath on which we apply the cos.

    Returns:
        MagicDotPathWithOp with one operand and on the correct operator.
    """
    return mdp._get_one_operand_operator(  # pylint: disable=protected-access
        TrigoFunctType.COS,
    )

cosd(mdp)

Cosd function for a MagicDotPath.

From psql docs: Cosine, argument in degrees.

See: https://www.postgresql.org/docs/current/functions-math.html

Parameters:
  • mdp (BaseMagicDotPath) – MagicDotPath on which we apply the cosd.

Returns:
  • MagicDotPathWithOp – MagicDotPathWithOp with one operand and on the correct operator.

Source code in py_linq_sql/utils/functions/magic_dp_trigo_functions.py
def cosd(mdp: BaseMagicDotPath) -> MagicDotPathWithOp:
    """
    Cosd function for a MagicDotPath.

    From psql docs: Cosine, argument in degrees.

    See: https://www.postgresql.org/docs/current/functions-math.html

    Args:
        mdp: MagicDotPath on which we apply the cosd.

    Returns:
        MagicDotPathWithOp with one operand and on the correct operator.
    """
    return mdp._get_one_operand_operator(  # pylint: disable=protected-access
        TrigoFunctType.COSD,
    )

cot(mdp)

Cot function for a MagicDotPath.

From psql docs: Cotangent, argument in radians.

See: https://www.postgresql.org/docs/current/functions-math.html

Parameters:
  • mdp (BaseMagicDotPath) – MagicDotPath on which we apply the cot.

Returns:
  • MagicDotPathWithOp – MagicDotPathWithOp with one operand and on the correct operator.

Source code in py_linq_sql/utils/functions/magic_dp_trigo_functions.py
def cot(mdp: BaseMagicDotPath) -> MagicDotPathWithOp:
    """
    Cot function for a MagicDotPath.

    From psql docs: Cotangent, argument in radians.

    See: https://www.postgresql.org/docs/current/functions-math.html

    Args:
        mdp: MagicDotPath on which we apply the cot.

    Returns:
        MagicDotPathWithOp with one operand and on the correct operator.
    """
    return mdp._get_one_operand_operator(  # pylint: disable=protected-access
        TrigoFunctType.COT,
    )

cotd(mdp)

Cotd function for a MagicDotPath.

From psql docs: Cotangent, argument in degrees.

See: https://www.postgresql.org/docs/current/functions-math.html

Parameters:
  • mdp (BaseMagicDotPath) – MagicDotPath on which we apply the cotd.

Returns:
  • MagicDotPathWithOp – MagicDotPathWithOp with one operand and on the correct operator.

Source code in py_linq_sql/utils/functions/magic_dp_trigo_functions.py
def cotd(mdp: BaseMagicDotPath) -> MagicDotPathWithOp:
    """
    Cotd function for a MagicDotPath.

    From psql docs: Cotangent, argument in degrees.

    See: https://www.postgresql.org/docs/current/functions-math.html

    Args:
        mdp: MagicDotPath on which we apply the cotd.

    Returns:
        MagicDotPathWithOp with one operand and on the correct operator.
    """
    return mdp._get_one_operand_operator(  # pylint: disable=protected-access
        TrigoFunctType.COTD,
    )

sin(mdp)

Sin function for a MagicDotPath.

From psql docs: Sine, argument in radians.

See: https://www.postgresql.org/docs/current/functions-math.html

Parameters:
  • mdp (BaseMagicDotPath) – MagicDotPath on which we apply the sin.

Returns:
  • MagicDotPathWithOp – MagicDotPathWithOp with one operand and on the correct operator.

Source code in py_linq_sql/utils/functions/magic_dp_trigo_functions.py
def sin(mdp: BaseMagicDotPath) -> MagicDotPathWithOp:
    """
    Sin function for a MagicDotPath.

    From psql docs: Sine, argument in radians.

    See: https://www.postgresql.org/docs/current/functions-math.html

    Args:
        mdp: MagicDotPath on which we apply the sin.

    Returns:
        MagicDotPathWithOp with one operand and on the correct operator.
    """
    return mdp._get_one_operand_operator(  # pylint: disable=protected-access
        TrigoFunctType.SIN,
    )

sind(mdp)

Sind function for a MagicDotPath.

From psql docs: Sine, argument in degrees.

See: https://www.postgresql.org/docs/current/functions-math.html

Parameters:
  • mdp (BaseMagicDotPath) – MagicDotPath on which we apply the sind.

Returns:
  • MagicDotPathWithOp – MagicDotPathWithOp with one operand and on the correct operator.

Source code in py_linq_sql/utils/functions/magic_dp_trigo_functions.py
def sind(mdp: BaseMagicDotPath) -> MagicDotPathWithOp:
    """
    Sind function for a MagicDotPath.

    From psql docs: Sine, argument in degrees.

    See: https://www.postgresql.org/docs/current/functions-math.html

    Args:
        mdp: MagicDotPath on which we apply the sind.

    Returns:
        MagicDotPathWithOp with one operand and on the correct operator.
    """
    return mdp._get_one_operand_operator(  # pylint: disable=protected-access
        TrigoFunctType.SIND,
    )

tan(mdp)

Tand function for a MagicDotPath.

From psql docs: Tangent, argument in radians.

See: https://www.postgresql.org/docs/current/functions-math.html

Parameters:
  • mdp (BaseMagicDotPath) – MagicDotPath on which we apply the tan.

Returns:
  • MagicDotPathWithOp – MagicDotPathWithOp with one operand and on the correct operator.

Source code in py_linq_sql/utils/functions/magic_dp_trigo_functions.py
def tan(mdp: BaseMagicDotPath) -> MagicDotPathWithOp:
    """
    Tand function for a MagicDotPath.

    From psql docs: Tangent, argument in radians.

    See: https://www.postgresql.org/docs/current/functions-math.html

    Args:
        mdp: MagicDotPath on which we apply the tan.

    Returns:
        MagicDotPathWithOp with one operand and on the correct operator.
    """
    return mdp._get_one_operand_operator(  # pylint: disable=protected-access
        TrigoFunctType.TAN,
    )

tand(mdp)

Tand function for a MagicDotPath.

From psql docs: Tangent, argument in degrees.

See: https://www.postgresql.org/docs/current/functions-math.html

Parameters:
  • mdp (BaseMagicDotPath) – MagicDotPath on which we apply the tand.

Returns:
  • MagicDotPathWithOp – MagicDotPathWithOp with one operand and on the correct operator.

Source code in py_linq_sql/utils/functions/magic_dp_trigo_functions.py
def tand(mdp: BaseMagicDotPath) -> MagicDotPathWithOp:
    """
    Tand function for a MagicDotPath.

    From psql docs: Tangent, argument in degrees.

    See: https://www.postgresql.org/docs/current/functions-math.html

    Args:
        mdp: MagicDotPath on which we apply the tand.

    Returns:
        MagicDotPathWithOp with one operand and on the correct operator.
    """
    return mdp._get_one_operand_operator(  # pylint: disable=protected-access
        TrigoFunctType.TAND,
    )