xCoba differentiation for general function of a tensor

207 views
Skip to first unread message

Sergey Slizovskiy

unread,
Jun 19, 2012, 4:42:55 PM6/19/12
to xa...@googlegroups.com
Imagine that I introduce a chart {t,x,y,u}
and I have a scalar field f[u[]] depending only on one coordinate.
  The partial derivatives in this chart do not know how to differentiate composite unknown function f,
but they do it correctly if I replace  f with any known function like Sqrt
     Are there ways to change such behaviour?  Is it made on purpose to evade some bugs?
 
Shall I better define f as a scalar tensor and write rules for it's derivatives?

Jose

unread,
Jun 19, 2012, 7:24:37 PM6/19/12
to xAct Tensor Computer Algebra
Hi Sergey,

You need to declare the function f to be a "scalar function". Use
DefScalarFunction[ f ]. In xAct you have to declare all objects you
use, so that the system knows what to do with them when they are
found.

The numeric functions of Mathematica (including Sqrt for example) are
all declared in advance to be of type ScalarFunction.

Just in case, beware of the difference between scalar functions and
scalar fields. The brackets in the scalar field x[] denote 0 indices.
The outer brackets in f[ x[], y[], z[] ] denote argument dependencies,
as usual in Mathematica. The system knows the difference precisely
because of the declarations.

Cheers,
Jose.

Sergey Slizovskiy

unread,
Jun 21, 2012, 3:12:32 AM6/21/12
to xa...@googlegroups.com
Thank you very much, Jose!
Reply all
Reply to author
Forward
0 new messages