MagicDotPath hyperbolic functions

All trigonometric functions for MagicDotPath.

acosh(mdp)

Acosh function for a MagicDotPath.

From psql docs: Inverse hyperbolic cosine.

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

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

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

Source code in py_linq_sql/utils/functions/magic_dp_hyperb_functions.py
def acosh(mdp: BaseMagicDotPath) -> MagicDotPathWithOp:
    """
    Acosh function for a MagicDotPath.

    From psql docs: Inverse hyperbolic cosine.

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

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

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

asinh(mdp)

Asinh function for a MagicDotPath.

From psql docs: Inverse hyperbolic sine.

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

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

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

Source code in py_linq_sql/utils/functions/magic_dp_hyperb_functions.py
def asinh(mdp: BaseMagicDotPath) -> MagicDotPathWithOp:
    """
    Asinh function for a MagicDotPath.

    From psql docs: Inverse hyperbolic sine.

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

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

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

atanh(mdp)

Atanh function for a MagicDotPath.

From psql docs: Inverse hyperbolic tangent.

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

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

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

Source code in py_linq_sql/utils/functions/magic_dp_hyperb_functions.py
def atanh(mdp: BaseMagicDotPath) -> MagicDotPathWithOp:
    """
    Atanh function for a MagicDotPath.

    From psql docs: Inverse hyperbolic tangent.

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

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

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

cosh(mdp)

Cosh function for a MagicDotPath.

From psql docs: Hyperbolic cosine.

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

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

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

Source code in py_linq_sql/utils/functions/magic_dp_hyperb_functions.py
def cosh(mdp: BaseMagicDotPath) -> MagicDotPathWithOp:
    """
    Cosh function for a MagicDotPath.

    From psql docs: Hyperbolic cosine.

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

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

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

sinh(mdp)

Sinh function for a MagicDotPath.

From psql docs: Hyperbolic sine.

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

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

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

Source code in py_linq_sql/utils/functions/magic_dp_hyperb_functions.py
def sinh(mdp: BaseMagicDotPath) -> MagicDotPathWithOp:
    """
    Sinh function for a MagicDotPath.

    From psql docs: Hyperbolic sine.

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

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

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

tanh(mdp)

Tanh function for a MagicDotPath.

From psql docs: Hyperbolic tangent.

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

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

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

Source code in py_linq_sql/utils/functions/magic_dp_hyperb_functions.py
def tanh(mdp: BaseMagicDotPath) -> MagicDotPathWithOp:
    """
    Tanh function for a MagicDotPath.

    From psql docs: Hyperbolic tangent.

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

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

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