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. 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 the MIT License. See the LICENSE.txt file for more information.
Author
dgcv was created and is maintained by David Sykes.
Future Development
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.
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.3.14.tar.gz.
File metadata
- Download URL: dgcv-0.3.14.tar.gz
- Upload date:
- Size: 555.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.25
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
da89d0a44af8841db59972e47f99789a8a4046e1e7d4af2f0554b7bd66cc7fc0
|
|
| MD5 |
2ee79d0adbbafe90359db138f035af5f
|
|
| BLAKE2b-256 |
0e4e64233464c01c59e67cbd8c8f7d500662be992f904bf48c24bbf27ab979af
|
File details
Details for the file dgcv-0.3.14-py3-none-any.whl.
File metadata
- Download URL: dgcv-0.3.14-py3-none-any.whl
- Upload date:
- Size: 577.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.25
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2a779460abf28b7b9d74edf471d6de130b3527a33930589cbd82a73dc3e87a1a
|
|
| MD5 |
5e3f94700afa6b703f68696f04bcbdcb
|
|
| BLAKE2b-256 |
1b0b37fb66b46cb46190da8ae22c47ed5dfc2ca58544e83c81fa5ae59e34be13
|