Skip to content
This repository has been archived by the owner on Jan 30, 2023. It is now read-only.

Commit

Permalink
21365: add doctests
Browse files Browse the repository at this point in the history
  • Loading branch information
rwst committed Nov 5, 2016
1 parent de71261 commit c0ef7a5
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/sage/functions/trig.py
Original file line number Diff line number Diff line change
Expand Up @@ -274,6 +274,15 @@ def __init__(self):
sage: type(_)
<type 'float'>
sage: cot(float(0))
Infinity
sage: cot(SR(0))
Infinity
sage: cot(float(0.1))
9.966644423259238
sage: type(_)
<type 'float'>
Test complex input::
sage: cot(complex(1,1)) # rel tol 1e-15
Expand Down

0 comments on commit c0ef7a5

Please sign in to comment.