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

Commit c0ef7a5

Browse files
committed
21365: add doctests
1 parent de71261 commit c0ef7a5

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/sage/functions/trig.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -274,6 +274,15 @@ def __init__(self):
274274
sage: type(_)
275275
<type 'float'>
276276
277+
sage: cot(float(0))
278+
Infinity
279+
sage: cot(SR(0))
280+
Infinity
281+
sage: cot(float(0.1))
282+
9.966644423259238
283+
sage: type(_)
284+
<type 'float'>
285+
277286
Test complex input::
278287
279288
sage: cot(complex(1,1)) # rel tol 1e-15

0 commit comments

Comments
 (0)