-
-
Notifications
You must be signed in to change notification settings - Fork 701
Closed
Milestone
Description
As reported in this 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.
CC: @tscrim @FlorentinJ
Component: geometry
Keywords: submanifolds, pseudo-Riemannian, second_fundamental_form
Author: Eric Gourgoulhon
Branch/Commit: f815378
Reviewer: Florentin Jaffredo
Issue created by migration from https://trac.sagemath.org/ticket/28462