Comment #12 on issue 564 by [email protected]: series expansion of acosh and acoth
http://code.google.com/p/sympy/issues/detail?id=564

Just a quick question regarding implementation of csch(x). I see that coth(x) takes S.Zero and returns S.Zero:

    def eval(cls, arg):
        arg = sympify(arg)

        if arg.is_Number:
            if arg is S.NaN:
                return S.NaN
            elif arg is S.Infinity:
                return S.One
            elif arg is S.NegativeInfinity:
                return S.NegativeOne
            elif arg is S.Zero:
                return S.Zero
            elif arg.is_negative:
                return -cls(-arg)

but coth(x), like csch(x) diverges to positive infinity from the right and negative infinity from the left. Can anyone tell me why it's defined to return zero at zero?


--
You received this message because you are subscribed to the Google Groups 
"sympy-issues" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/sympy-issues?hl=en.

Reply via email to