-
-
Notifications
You must be signed in to change notification settings - Fork 701
Closed
Milestone
Description
In Sage 8.7, we have
sage: M = Manifold(2, 'M')
sage: X.<x,y> = M.chart()
sage: p = M((2,-1), name='p')
sage: TpM = M.tangent_space(p)
sage: v = TpM((-2, 3), name='v'); v
Tangent vector v at Point p on the 2-dimensional differentiable manifold M
sage: f = M.scalar_field(x*y^2, name='f')
sage: v(f)
Traceback (most recent call last):
...
TypeError: the argument no. 1 must be a linear form
Note that this works for vector fields:
sage: w = M.vector_field(name='w')
sage: w[:] = -y, x
sage: w.display()
w = -y d/dx + x d/dy
sage: w(f)
Scalar field w(f) on the 2-dimensional differentiable manifold M
sage: w(f).display()
w(f): M --> R
(x, y) |--> 2*x^2*y - y^3
This issue has been reported in this ask.sagemath question.
CC: @tscrim
Component: geometry
Keywords: vector, derivation
Author: Eric Gourgoulhon
Branch/Commit: 4c0abd7
Reviewer: Travis Scrimshaw
Issue created by migration from https://trac.sagemath.org/ticket/27856