Skip to main content

Differential Geometry with Complex Variables

Project description

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, and has dependencies on the SymPy, Pandas, and iPython libraries.

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, e.g.:

pip install dgcv

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 the MIT License. See the LICENSE.txt file for more information.

Author

dgcv was created and is maintained by David Sykes.


Future Development

The current (0.3.x) version of dgcv is designed with several planned extensions to the library in mind. Current plans broadly fall into two categories:

  • Extending complex variable handling and dynamic coordinate-type conversion automations. The simple goal is to fully automate handling of complex variable formats, allowing input to be formatted freely with any coordinate type, with features to fully control coordinate type formatting or let the systems automate the process.
  • Expanding libraries dedicated to more specialized areas of differential geometry

Contributions, requests for additions to the library, and feedback from anyone interested are very much welcome.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

dgcv-0.3.3.tar.gz (434.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

dgcv-0.3.3-py3-none-any.whl (442.8 kB view details)

Uploaded Python 3

File details

Details for the file dgcv-0.3.3.tar.gz.

File metadata

  • Download URL: dgcv-0.3.3.tar.gz
  • Upload date:
  • Size: 434.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.23

File hashes

Hashes for dgcv-0.3.3.tar.gz
Algorithm Hash digest
SHA256 564e3008079ec753e62d16ef770f9c760f2e1f1606aab9d71e9ce3157d6f0135
MD5 779601883b92a5bcf2bbe64dbb017614
BLAKE2b-256 d2eeeb3dcda815e9b61c40cce07e550c7ad39103812feda3d3d5b34a29eb8ff9

See more details on using hashes here.

File details

Details for the file dgcv-0.3.3-py3-none-any.whl.

File metadata

  • Download URL: dgcv-0.3.3-py3-none-any.whl
  • Upload date:
  • Size: 442.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.23

File hashes

Hashes for dgcv-0.3.3-py3-none-any.whl
Algorithm Hash digest
SHA256 b5dd2f5543a090d9e3f482a43e9f95197cd0f8bbfc34a060e7f65c4c8a3b0339
MD5 a32b9402a6f2cff1453241cf3cf6a796
BLAKE2b-256 97228d0f06577822c6922e9d37105a0c02e6aa361af6cc9b6b1d5715a16a5f10

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page