Skip to main content

dgcv: Differential Geometry with Complex Variables

dgcv is an open-source Python package providing basic tools for differential geometry integrated with systematic organization of structures naturally accompanying complex variables, in short, Differential Geometry with Complex Variables.

At its core are symbolic representations of standard DG objects such as vector fields and differential forms. There are coordinate free representations, and representations defined relative to coordinate systems falling into two general categories:

  • standard - basic systems that can represent real or complex coordinates, sufficient for applications that do not require dgcv's complex variable handling features.
  • complex - richer systems for representing complex coordinate patches that interact with dgcv's complex variable handling features. These are comprised of holomorphic coordinate functions, their conjugates, and their real and imaginary parts (e.g., $\{z_j,\overline{z_j},x_j,y_j\}$).

dgcv functions account for coordinate types dynamically when operating on objects built from such coordinate systems. The package has a growing library for coordinate-free representations as well, and tools for converting between the two paradigms.

As systems of differential geometric objects constructed from complex variables inherit natural relationships from the underlying complex structure, dgcv objects track these relationships across the constructions. This system enables smooth switching between real and holomorphic coordinate representations of mathematical objects. In computations, dgcv objects dynamically manage this format switching on their own so that typical complex variables formulas can be written plainly and will simply work. Some examples of this: In coordinates $z_j = x_j + iy_j$, expressions such as $\frac{\partial}{\partial x_j}|z_j|^2$ or $d z_j \wedge d \overline{z_j} \left( \frac{\partial}{\partial z_j}, \frac{\partial}{\partial y_j} \right)$ are correctly parsed without needing to convert everything to a uniform variable format. Retrieving objects' complex structure-related attributes, like the holomorphic part of a vector field or pluriharmonic terms from a polynomial is straightforward. Complexified cotangent bundles and their exterior algebras are easily decomposed into components from the Dolbeault complex and Dolbeault operators themselves can be applied to functions and k-forms in either coordinate format.

dgcv is tested on Python 3.13. Integration with SymPy, Sage, and IPython is supported, but none are required dependencies.

Features

  • Symbolic representations of various tensor fields (vector fields, differential forms, etc.) and dedicated python classes for representing many other common differential geometric structures
  • Intuitive interactions with complex structures from holomorphic coordinate systems: dgcv objects dynamically manage coordinate transformations between real and holomorphic coordinates during computation as necessary, so objects can be represented in and freely converted between either coordinate format

Installation

dgcv can be installed directly from PyPI with pip:

pip install dgcv

Optional supporting libraries can be installed simultaneously as needed:

pip install dgcv[sympy] # simultaneously install SymPy
pip install dgcv[ipython] # simultaneously install IPython
pip install dgcv[recommended] # simultaneously installs both IPython and SymPy

Depending on Python install configurations, the above command can vary. The key is to have the relevant Python environment active so that the package manager pip sources from the right location (suggested to use virtual environments: Getting started with virtual environments).

Documentation

dgcv documentation is hosted at https://www.realandimaginary.com/dgcv/, with documentation pages for individual functions in the library and more. Docstrings within the code provide more information on available classes/methods and functions.

License

dgcv is licensed under an Apache 2.0 License. See the LICENSE and NOTICE files for more information.

Author

dgcv was created and is maintained by David Sykes.


Development Notes

dgcv is always growing and updated regularly. I regularly make new functions for personal projects, and add the ones with general utility for others to the public versions of dgcv. Contributions, requests for additions to the library, and feedback from anyone interested are very much welcome. –D.S.

Metadata

Release files for dgcv 0.4.34

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for dgcv 0.4.34
File Size Uploaded
dgcv-0.4.34.tar.gz 508.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for dgcv 0.4.34
File Interpreter ABI Platform
dgcv-0.4.34-py3-none-any.whl Python 3 none any Details

Total release size: 1.1 MB

Release files / dgcv-0.4.34.tar.gz

Download URL dgcv-0.4.34.tar.gz
Size 508.1 kB
Tags Source
SHA-256 checksum
How to use checksums
895169b832bd555b79f238eb07ab8011dd2c4e28d2ba4bf0febf5d19c82e5f96
BLAKE2b-256 checksum
How to use checksums
e9f5a45d41feee7f10f4523f4e646112feb9e3b1b807f3c3a002c3059b0d9de1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.25

Release files / dgcv-0.4.34-py3-none-any.whl

Download URL dgcv-0.4.34-py3-none-any.whl
Size 604.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7b68bfdf24ffceb62911a369a5b17bb4fd5efe61548ab3f4d3dc281797f7c6d5
BLAKE2b-256 checksum
How to use checksums
eb3580d7ed51905ec03e7271a35d5d2bab5a3ac8a9eef99c64f2ebe0ddf2ea82
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.25

Release history Release notifications | RSS feed

0.6.0

2 release files

0.5.1

2 release files

0.5.0

2 release files

0.4.36

2 release files

0.4.35

2 release files

This release

0.4.34 This release

2 release files

0.4.29

2 release files

0.4.28

2 release files

0.4.27

2 release files

0.4.25

2 release files

0.4.24

2 release files

0.4.23

2 release files

0.4.22

2 release files

0.4.21

2 release files

0.4.20

2 release files

0.4.19

2 release files

0.4.17

2 release files

0.4.16

2 release files

0.4.15

2 release files

0.4.14

2 release files

0.4.13

2 release files

0.4.12

2 release files

0.4.11

2 release files

0.4.10

2 release files

0.4.9

2 release files

0.4.8

2 release files

0.4.7

2 release files

0.4.6

2 release files

0.4.5

2 release files

0.4.4

2 release files

0.4.3

2 release files

0.4.2

2 release files

0.4.1

2 release files

0.4.0

2 release files

0.3.14

2 release files

0.3.13

2 release files

0.3.11

2 release files

0.3.10

2 release files

0.3.9

2 release files

0.3.8

2 release files

0.3.7

2 release files

0.3.6

2 release files

0.3.5

2 release files

0.3.4

2 release files

0.3.3

2 release files

0.3.2

2 release files

0.3.1

2 release files

0.3.0

2 release files

0.2.15

2 release files

0.2.14

2 release files

0.2.13

2 release files

0.1.2

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page