Objects and calculus

The expression tree, the property registry, the object factories and the tangent-bundle operators of Cartan calculus. Every name on this page is importable directly from jacopy.

Expressions

The core expression classes and the property registry. Expr and Atom are the extension protocol for new expression nodes.

jacopy.Expr()

Abstract base class for all expressions.

jacopy.Atom()

An expression with no children.

jacopy.Symbol(name)

A named symbolic variable, e.g. Symbol("X").

jacopy.Integer(value)

Integer literal.

jacopy.Rational(p[, q])

A rational number p/q in lowest terms with q > 0.

jacopy.Sum(*children)

n-ary sum.

jacopy.Product(*children)

n-ary product.

jacopy.Power(base, exp)

Exponentiation base ** exp.

jacopy.Neg(arg)

Unary negation -x.

jacopy.Zero

Integer literal.

jacopy.One

Integer literal.

jacopy.NegOne

Integer literal.

jacopy.Wedge(*children)

n-ary wedge product α_1 ∧ α_2 ∧ … ∧ α_p.

jacopy.MultiEval(head, *args[, alternating, ...])

Multilinear evaluation head(arg_1, …, arg_p).

jacopy.PropertyRegistry(*[, strict_axioms_only])

Stores properties keyed by expression, class, or predicate.

jacopy.default_registry()

Return the process-wide default registry.

Operator application

jacopy.Act(op, arg)

Application of an operator to an argument: op(arg).

jacopy.Derivation(name[, degree])

A named graded derivation operator.

Object factories

Factories for functions, vector fields, forms, tensors, metrics, connections and frames on the tangent bundle.

jacopy.Bundle(name, *[, dim])

A vector bundle E (central-code context).

jacopy.TM

TM — the "usual" case of the central code.

jacopy.tangent_bundle(*[, dim])

Create the bundle TM (with an optional dimension).

jacopy.functions(names, *, registry[, degree])

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

jacopy.vector_fields(names, *[, bundle])

Create one or more vector fields (sections).

jacopy.forms(names, *, degree[, bundle])

Create one or more p-forms.

jacopy.p_vectors(names, *, degree[, bundle])

Create one or more p-vector fields.

jacopy.bivector(name, *[, bundle])

A single 2-vector (p = 2) — shortcut for the Poisson bivector.

jacopy.tensors(names, *, upper, lower[, bundle])

Create one or more (q, r)-tensors.

jacopy.metric([name, bundle])

Create a metric g.

jacopy.Metric([name, bundle])

g — a (0, 2) symmetric non-degenerate metric.

jacopy.hodge(omega, g)

⋆_g ω — the Hodge dual of ω w.r.t.

jacopy.connection([name, bundle])

Create an affine connection ∇.

jacopy.covariant_derivative(conn, X, T)

∇_X T — readable call helper.

jacopy.frame([name, bundle])

Create a local frame (e_a).

jacopy.coframe([name, bundle])

Create a local coframe (e^a).

jacopy.pairing(alpha, X)

Build the pairing ⟨α, X⟩ (readable helper function).

jacopy.Pairing(alpha, X)

Canonical pairing ⟨α, X⟩.

jacopy.wedge(*args)

Build the wedge product α ∧ β ∧ … (smart constructor Wedge.make()).

jacopy.multi_eval(head, *args[, ...])

Functional constructor for MultiEval.

jacopy.interior(X, *[, name])

Build the operator ι_X (for the vector field X).

Cartan calculus operators

The Lie derivative and the exterior derivative. The interior product is interior above.

jacopy.lie_derivative(X)

L_X — the TM Lie derivative operator (degree 0).

jacopy.exterior_d()

The exterior derivative d of the TM Cartan calculus (degree +1).