jacopy.functions

jacopy.functions(names, *, registry, degree=0)

Declare one or more C^∞(M) functions.

functions("f g h", registry=reg) returns three Symbols; each is declared on reg with Graded(degree=0). Even for a single name the return value is a tuple: (f,) = functions("f", registry=reg).

Parameters:
  • names (str) – Whitespace-separated name(s).

  • registry (PropertyRegistry) – The registry the grading is declared on. An explicit registry= is mandatory; there is no hidden singleton, so property state stays local.

  • degree (int) – Grading degree; defaults to 0 (classical C^∞(M)). A different degree may occasionally be wanted for a p-form generator.

Return type:

Tuple[Symbol, …]