Skip to content

Commit fc1ac57

Browse files
committed
15046: break doctest output lines
1 parent e4b089a commit fc1ac57

File tree

1 file changed

+17
-5
lines changed

1 file changed

+17
-5
lines changed

src/sage/functions/special.py

+17-5
Original file line numberDiff line numberDiff line change
@@ -1005,7 +1005,11 @@ def _derivative_(self, u, m, diff_param):
10051005
sage: elliptic_eu(x,m).diff(x)
10061006
sqrt(-m*jacobi_sn(x, m)^2 + 1)*jacobi_dn(x, m)
10071007
sage: elliptic_eu(x,m).diff(m)
1008-
1/2*(elliptic_eu(x, m) - elliptic_f(jacobi_am(x, m), m))/m - 1/2*(m*jacobi_cn(x, m)*jacobi_sn(x, m) - (m - 1)*x - elliptic_eu(x, m)*jacobi_dn(x, m))*sqrt(-m*jacobi_sn(x, m)^2 + 1)/((m - 1)*m)
1008+
1/2*(elliptic_eu(x, m)
1009+
- elliptic_f(jacobi_am(x, m), m))/m
1010+
- 1/2*(m*jacobi_cn(x, m)*jacobi_sn(x, m)
1011+
- (m - 1)*x
1012+
- elliptic_eu(x, m)*jacobi_dn(x, m))*sqrt(-m*jacobi_sn(x, m)^2 + 1)/((m - 1)*m)
10091013
"""
10101014
from sage.functions.jacobi import jacobi, jacobi_am
10111015
if diff_param == 0:
@@ -1143,7 +1147,9 @@ def _derivative_(self, z, m, diff_param):
11431147
sage: elliptic_f(x,m).diff(x)
11441148
1/sqrt(-m*sin(x)^2 + 1)
11451149
sage: elliptic_f(x,m).diff(m)
1146-
-1/2*elliptic_f(x, m)/m + 1/4*sin(2*x)/(sqrt(-m*sin(x)^2 + 1)*(m - 1)) - 1/2*elliptic_e(x, m)/((m - 1)*m)
1150+
-1/2*elliptic_f(x, m)/m
1151+
+ 1/4*sin(2*x)/(sqrt(-m*sin(x)^2 + 1)*(m - 1))
1152+
- 1/2*elliptic_e(x, m)/((m - 1)*m)
11471153
"""
11481154
if diff_param == 0:
11491155
return Integer(1) / sqrt(Integer(1) - m * sin(z) ** Integer(2))
@@ -1238,7 +1244,8 @@ def _derivative_(self, z, diff_param):
12381244
EXAMPLES::
12391245
12401246
sage: elliptic_kc(x).diff(x)
1241-
-1/2*((x - 1)*elliptic_kc(x) + elliptic_ec(x))/((x - 1)*x)
1247+
-1/2*((x - 1)*elliptic_kc(x)
1248+
+ elliptic_ec(x))/((x - 1)*x)
12421249
"""
12431250
return ((elliptic_ec(z) - (Integer(1) - z) * elliptic_kc(z)) /
12441251
(Integer(2) * (Integer(1) - z) * z))
@@ -1327,11 +1334,16 @@ def _derivative_(self, n, z, m, diff_param):
13271334
13281335
sage: n,z,m = var('n,z,m')
13291336
sage: elliptic_pi(n,z,m).diff(n)
1330-
1/4*(sqrt(-m*sin(z)^2 + 1)*n*sin(2*z)/(n*sin(z)^2 - 1) + 2*(m - n)*elliptic_f(z, m)/n + 2*(n^2 - m)*elliptic_pi(n, z, m)/n + 2*elliptic_e(z, m))/((m - n)*(n - 1))
1337+
1/4*(sqrt(-m*sin(z)^2 + 1)*n*sin(2*z)/(n*sin(z)^2 - 1)
1338+
+ 2*(m - n)*elliptic_f(z, m)/n
1339+
+ 2*(n^2 - m)*elliptic_pi(n, z, m)/n
1340+
+ 2*elliptic_e(z, m))/((m - n)*(n - 1))
13311341
sage: elliptic_pi(n,z,m).diff(z)
13321342
-1/(sqrt(-m*sin(z)^2 + 1)*(n*sin(z)^2 - 1))
13331343
sage: elliptic_pi(n,z,m).diff(m)
1334-
1/4*(m*sin(2*z)/(sqrt(-m*sin(z)^2 + 1)*(m - 1)) - 2*elliptic_e(z, m)/(m - 1) - 2*elliptic_pi(n, z, m))/(m - n)
1344+
1/4*(m*sin(2*z)/(sqrt(-m*sin(z)^2 + 1)*(m - 1))
1345+
- 2*elliptic_e(z, m)/(m - 1)
1346+
- 2*elliptic_pi(n, z, m))/(m - n)
13351347
"""
13361348
if diff_param == 0:
13371349
return ((Integer(1) / (Integer(2) * (m - n) * (n - Integer(1)))) *

0 commit comments

Comments
 (0)