## "Fossies" - the Fresh Open Source Software Archive

### Source code changes of the file "mpmath/functions/functions.py" betweenmpmath-0.19.tar.gz and mpmath-1.0.0.tar.gz

About: mpmath is a Python library for arbitrary-precision floating-point arithmetic.

functions.py  (mpmath-0.19):functions.py  (mpmath-1.0.0)
skipping to change at line 109 skipping to change at line 109
@defun_wrapped @defun_wrapped
def coth(ctx, z): return ctx.one / ctx.tanh(z) def coth(ctx, z): return ctx.one / ctx.tanh(z)
@defun_wrapped @defun_wrapped
def sech(ctx, z): return ctx.one / ctx.cosh(z) def sech(ctx, z): return ctx.one / ctx.cosh(z)
@defun_wrapped @defun_wrapped
def csch(ctx, z): return ctx.one / ctx.sinh(z) def csch(ctx, z): return ctx.one / ctx.sinh(z)
@defun_wrapped @defun_wrapped
def acot(ctx, z): return ctx.atan(ctx.one / z) def acot(ctx, z):
if not z:
return ctx.pi * 0.5
else:
return ctx.atan(ctx.one / z)
@defun_wrapped @defun_wrapped
def asec(ctx, z): return ctx.acos(ctx.one / z) def asec(ctx, z): return ctx.acos(ctx.one / z)
@defun_wrapped @defun_wrapped
def acsc(ctx, z): return ctx.asin(ctx.one / z) def acsc(ctx, z): return ctx.asin(ctx.one / z)
@defun_wrapped @defun_wrapped
def acoth(ctx, z): return ctx.atanh(ctx.one / z) def acoth(ctx, z):
if not z:
return ctx.pi * 0.5j
else:
return ctx.atanh(ctx.one / z)
@defun_wrapped @defun_wrapped
def asech(ctx, z): return ctx.acosh(ctx.one / z) def asech(ctx, z): return ctx.acosh(ctx.one / z)
@defun_wrapped @defun_wrapped
def acsch(ctx, z): return ctx.asinh(ctx.one / z) def acsch(ctx, z): return ctx.asinh(ctx.one / z)
@defun @defun
def sign(ctx, x): def sign(ctx, x):
x = ctx.convert(x) x = ctx.convert(x)
End of changes. 2 change blocks.
2 lines changed or deleted 10 lines changed or added