Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Implement cot as a ReciprocalTrigonometricFunction
  • Loading branch information
skirpichev committed Mar 24, 2015
1 parent 2c83c61 commit aa66604
Show file tree
Hide file tree
Showing 2 changed files with 132 additions and 281 deletions.
4 changes: 2 additions & 2 deletions sympy/functions/elementary/tests/test_trigonometric.py
Expand Up @@ -585,8 +585,8 @@ def test_cot_series():

def test_cot_rewrite():
neg_exp, pos_exp = exp(-x*I), exp(x*I)
assert cot(x).rewrite(exp) == I*(pos_exp + neg_exp)/(pos_exp - neg_exp)
assert cot(x).rewrite(sin) == 2*sin(2*x)/sin(x)**2
assert cot(x).rewrite(exp) == -I*(pos_exp + neg_exp)/(-pos_exp + neg_exp)
assert cot(x).rewrite(sin) == sin(2*x)/(2*sin(x)**2)
assert cot(x).rewrite(cos) == -cos(x)/cos(x + S.Pi/2)
assert cot(x).rewrite(tan) == 1/tan(x)
assert cot(sinh(x)).rewrite(
Expand Down

0 comments on commit aa66604

Please sign in to comment.