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 fully featured symbolic representations of standard DG objects such as vector fields and differential forms, defined relative to coordinate systems that fall into two broad categories:
- standard - basic systems that can represent real or complex coordinates, sufficient for all applications that do not require DGCV's complex variable handling features.
- complex - richer systems for representing complex coordinate patches, which interact with DGCV's complex variable handling features. These are comprised 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 oprating on objects built from 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. Advantages of the uniform integration arise from 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 was developed using Python 3.13, and has dependencies on the SymPy and Pandas libraries in addition to base Python.
Features
- Fully featured symbolic representations of vector fields, differential forms, and tensor fields
- 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 at any time.
- Dedicated python classes for representing common differential geometric structures
- Natural LaTeX rendering for representation of mathematical objects, designed with Jupyter notebooks in mind.
Installation
You can install dgcv 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).
Please note, old versions of dgcv where named with capital letters and thus required pip install DGCV instead. The upper case name is no longer in use, so this old command will not install the latest version of dgcv. The change was made to allign with accepted naming standards.
Tutorials
Two Jupyter Notebook tutorials are available to help getting started with dgcv:
-
dgcv Introduction: An introduction to the key concepts and setup
-
dgcv in Action: A quick tour through examples from some of the library's more elaborate functions
Running the Tutorials Locally
You can download the tutorials individually from the dgcv repository dgcv github repo.
Documentation
dgcv documentation is hosted at https://www.realandimaginary.com/dgcv/, with documentation pages for each function in the library and more. Full documentation is gradually being filled in. In the mean time, 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.2.x) version of dgcv is foundation on which a lot more can be built. Many additions for future updates are planned, including:
- 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. Much more will be added to this end.
- Expanding libraries dedicated to more specialized areas of differential geometry
Contributions and feedback from anyone interested are warmly welcomed. Stay tuned for more updates!
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file dgcv-0.2.14.tar.gz.
File metadata
- Download URL: dgcv-0.2.14.tar.gz
- Upload date:
- Size: 410.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.9.22
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9cf9e416a36ded588999a7b073939be24ff88445106ff1a2fb47ee12bf277289
|
|
| MD5 |
702f7d5c03472dfd7dab3d37bfa77c82
|
|
| BLAKE2b-256 |
623291c1591980f87bcca6c69126d6451ebdd123a107b22237960ec6cdfa4506
|
File details
Details for the file dgcv-0.2.14-py3-none-any.whl.
File metadata
- Download URL: dgcv-0.2.14-py3-none-any.whl
- Upload date:
- Size: 416.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.9.22
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
aee219139824241fc11b604cdc0794084cabeb46a119be8fc9e985f3f2accf06
|
|
| MD5 |
86a05e26ac4aa07ce8fa4e3b3ca69536
|
|
| BLAKE2b-256 |
d659614acf56d596f62d601ff1a37f7d149ce640200afa639adf46e3f5090f82
|