1 | initial version |
You should use
g.along(beta)(vbeta, vbeta)
See the documentation of the method along().
In SageMath 9.2, which should be released within a few weeks, you will be able to use directly vbeta.dot(vbeta)
or vbeta.norm()
, cf. the 9.2 release tour.
2 | No.2 Revision |
You should use
g.along(beta)(vbeta, vbeta)
See the documentation of the method along().
Considering your example, we have
sage: v2 = g.along(beta)(vbeta, vbeta); v2
Scalar field on the Real interval (0, +Infinity)
sage: v2.display()
(0, +Infinity) --> R
t |--> -1/cosh(t)^2
sage: v2.expr()
-1/cosh(t)^2
In SageMath 9.2, which should be released within a few weeks, you will be able to use directly vbeta.dot(vbeta)
or vbeta.norm()
, cf. the 9.2 release tour.