This repository was archived by the owner on Feb 1, 2023. It is now read-only.
Commit c9df1ee
Release Manager
Trac #28462: Bug in computing the second fundamental form of a Riemannian submanifold
As reported in this [https://ask.sagemath.org/question/47786
ask.sagemath question], we have currently (Sage 8.8 and 8.9.beta9):
{{{
sage: P = Manifold(3, 'P', structure='Riemannian')
sage: Q = Manifold(2, 'Q', ambient=P, structure='Riemannian')
sage: CP.<x,y,z> = P.chart()
sage: CQ.<u,v> = Q.chart()
sage: g = P.metric()
sage: c = 2/(1 + y^2 + z^2)
sage: g[0,0], g[1,1], g[2,2] = 1, c^2, c^2
sage: phi = Q.diff_map(P, (u+v, u, v))
sage: phi_inv = P.diff_map(Q, (y, z))
sage: Q.set_embedding(phi, inverse=phi_inv)
sage: Q.second_fundamental_form()
TypeError: unable to convert 1/2*sqrt(2)*(u^4 + v^4 + 2*(u^2 + 1)*v^2 +
2*u^2 + 1)*y/
(sqrt(u^4 + v^4 + 2*(u^2 + 1)*v^2 + 2*u^2 + 3)*(y^2 + z^2 + 1))
+ 1/2*sqrt(2)*(u^4 + v^4 + 2*(u^2 + 1)*v^2 + 2*u^2 + 1)*z/
(sqrt(u^4 + v^4 + 2*(u^2 + 1)*v^2 + 2*u^2 + 3)*(y^2 + z^2 + 1))
to an integer
}}}
This results from the mention of the ring `SR` missing in the
declaration of a matrix involved in the computation.
The issue is fixed by this ticket.
URL: https://trac.sagemath.org/28462
Reported by: egourgoulhon
Ticket author(s): Eric Gourgoulhon
Reviewer(s): Florentin JaffredoFile tree
1 file changed
+32
-7
lines changed- src/sage/manifolds/differentiable
1 file changed
+32
-7
lines changedLines changed: 32 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1058 | 1058 | | |
1059 | 1059 | | |
1060 | 1060 | | |
| 1061 | + | |
| 1062 | + | |
| 1063 | + | |
| 1064 | + | |
| 1065 | + | |
| 1066 | + | |
| 1067 | + | |
| 1068 | + | |
| 1069 | + | |
| 1070 | + | |
| 1071 | + | |
| 1072 | + | |
| 1073 | + | |
| 1074 | + | |
| 1075 | + | |
| 1076 | + | |
| 1077 | + | |
1061 | 1078 | | |
1062 | 1079 | | |
1063 | 1080 | | |
| |||
1080 | 1097 | | |
1081 | 1098 | | |
1082 | 1099 | | |
1083 | | - | |
| 1100 | + | |
| 1101 | + | |
| 1102 | + | |
1084 | 1103 | | |
1085 | 1104 | | |
1086 | | - | |
1087 | | - | |
| 1105 | + | |
| 1106 | + | |
| 1107 | + | |
| 1108 | + | |
| 1109 | + | |
1088 | 1110 | | |
1089 | | - | |
1090 | | - | |
1091 | | - | |
| 1111 | + | |
| 1112 | + | |
1092 | 1113 | | |
1093 | 1114 | | |
1094 | 1115 | | |
| |||
1100 | 1121 | | |
1101 | 1122 | | |
1102 | 1123 | | |
1103 | | - | |
| 1124 | + | |
| 1125 | + | |
| 1126 | + | |
| 1127 | + | |
| 1128 | + | |
1104 | 1129 | | |
1105 | 1130 | | |
1106 | 1131 | | |
| |||
0 commit comments