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

Commit 69f75ec

Browse files
committed
more tests
1 parent c1f1583 commit 69f75ec

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/sage/rings/rational.pyx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -286,6 +286,10 @@ cpdef rational_power_parts(a, b, factor_limit=10**5):
286286
True
287287
sage: (-1)^(1/3)*(-1)^(1/5)
288288
(-1)^(8/15)
289+
sage: bool((-1)^(2/3) == -1/2 + sqrt(3)/2*I)
290+
True
291+
sage: all((-1)^(p/q) == cos(p*pi/q) + I * sin(p*pi/q) for p in srange(1,6) for q in srange(1,6))
292+
True
289293
"""
290294
b_negative=False
291295
if b < 0:

0 commit comments

Comments
 (0)