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

Commit 6ee3113

Browse files
DaveWitteMorrisdimpase
authored andcommitted
doctests for trac 28620, 30304, 30786
1 parent 214712d commit 6ee3113

File tree

1 file changed

+15
-7
lines changed

1 file changed

+15
-7
lines changed

src/sage/symbolic/expression.pyx

+15-7
Original file line numberDiff line numberDiff line change
@@ -1231,13 +1231,6 @@ cdef class Expression(CommutativeRingElement):
12311231
12321232
sage: latex(1+x^(2/3)+x^(-2/3))
12331233
x^{\frac{2}{3}} + \frac{1}{x^{\frac{2}{3}}} + 1
1234-
1235-
Check that pynac understands rational powers (:trac:`30446`)::
1236-
1237-
sage: QQ((24*sqrt(3))^(100/50))==1728
1238-
True
1239-
sage: float((24*sqrt(3))^(100/51))
1240-
1493.0092154...
12411234
"""
12421235
return self._parent._latex_element_(self)
12431236

@@ -4131,6 +4124,21 @@ cdef class Expression(CommutativeRingElement):
41314124
sage: elem = SR(2)^n
41324125
sage: (elem, elem.parent())
41334126
(2^n, Asymptotic Ring <SR^n * n^SR> over Symbolic Ring)
4127+
4128+
Check that pynac understands rational powers (:trac:`30446`,
4129+
:trac:`28620`, :trac:`30304`, and :trac:`30786`)::
4130+
4131+
sage: QQ((24*sqrt(3))^(100/50))==1728
4132+
True
4133+
sage: float((24*sqrt(3))^(100/51))
4134+
1493.0092154...
4135+
sage: t=((1/10)*I/pi)^(3/2)
4136+
sage: t^2
4137+
-1/1000*I/pi^3
4138+
sage: (2*pi)^QQ(2)
4139+
4*pi^2
4140+
sage: exp(-3*ln(-9*x)/3)
4141+
-1/9/x
41344142
"""
41354143
cdef Expression nexp = <Expression>other
41364144
cdef GEx x

0 commit comments

Comments
 (0)