coordinate-system 7.0.1__tar.gz → 7.1.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {coordinate_system-7.0.1/coordinate_system.egg-info → coordinate_system-7.1.0}/PKG-INFO +11 -11
- {coordinate_system-7.0.1 → coordinate_system-7.1.0}/README.md +7 -7
- {coordinate_system-7.0.1 → coordinate_system-7.1.0}/coordinate_system/__init__.py +99 -56
- {coordinate_system-7.0.1 → coordinate_system-7.1.0}/coordinate_system/complex_geometric_physics.py +130 -122
- {coordinate_system-7.0.1 → coordinate_system-7.1.0}/coordinate_system/curve_interpolation.py +4 -3
- {coordinate_system-7.0.1 → coordinate_system-7.1.0}/coordinate_system/differential_geometry.py +105 -10
- {coordinate_system-7.0.1 → coordinate_system-7.1.0}/coordinate_system/spectral_geometry.py +1169 -1185
- {coordinate_system-7.0.1 → coordinate_system-7.1.0}/coordinate_system/u3_frame.py +4 -4
- {coordinate_system-7.0.1 → coordinate_system-7.1.0}/coordinate_system/visualization.py +4 -3
- {coordinate_system-7.0.1 → coordinate_system-7.1.0/coordinate_system.egg-info}/PKG-INFO +11 -11
- {coordinate_system-7.0.1 → coordinate_system-7.1.0}/coordinate_system_binding.cpp +4 -3
- {coordinate_system-7.0.1 → coordinate_system-7.1.0}/pmsys_minimal.hpp +274 -276
- {coordinate_system-7.0.1 → coordinate_system-7.1.0}/pyproject.toml +3 -3
- {coordinate_system-7.0.1 → coordinate_system-7.1.0}/setup.py +5 -4
- {coordinate_system-7.0.1 → coordinate_system-7.1.0}/LICENSE +0 -0
- {coordinate_system-7.0.1 → coordinate_system-7.1.0}/MANIFEST.in +0 -0
- {coordinate_system-7.0.1 → coordinate_system-7.1.0}/coordinate_system.egg-info/SOURCES.txt +0 -0
- {coordinate_system-7.0.1 → coordinate_system-7.1.0}/coordinate_system.egg-info/dependency_links.txt +0 -0
- {coordinate_system-7.0.1 → coordinate_system-7.1.0}/coordinate_system.egg-info/not-zip-safe +0 -0
- {coordinate_system-7.0.1 → coordinate_system-7.1.0}/coordinate_system.egg-info/requires.txt +0 -0
- {coordinate_system-7.0.1 → coordinate_system-7.1.0}/coordinate_system.egg-info/top_level.txt +0 -0
- {coordinate_system-7.0.1 → coordinate_system-7.1.0}/setup.cfg +0 -0
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: coordinate_system
|
|
3
|
-
Version: 7.0
|
|
3
|
+
Version: 7.1.0
|
|
4
4
|
Summary: High-performance 3D coordinate system library with unified differential geometry, quantum frame algebra, and Christmas Equation (CFUT)
|
|
5
5
|
Home-page: https://github.com/panguojun/Coordinate-System
|
|
6
|
-
Author:
|
|
7
|
-
Author-email:
|
|
6
|
+
Author: Pan Guojun
|
|
7
|
+
Author-email: Pan Guojun <18858146@qq.com>
|
|
8
8
|
License: MIT
|
|
9
9
|
Project-URL: Homepage, https://github.com/panguojun/Coordinate-System
|
|
10
10
|
Project-URL: Documentation, https://github.com/panguojun/Coordinate-System/blob/main/README.md
|
|
11
11
|
Project-URL: Repository, https://github.com/panguojun/Coordinate-System
|
|
12
12
|
Project-URL: Bug Reports, https://github.com/panguojun/Coordinate-System/issues
|
|
13
|
-
Project-URL: DOI, https://
|
|
13
|
+
Project-URL: DOI, https://doi.org/10.5281/zenodo.14435613
|
|
14
14
|
Keywords: 3d,math,vector,quaternion,coordinate-system,geometry,differential-geometry,curvature,spectral-analysis,christmas-equation,cfut,unified-field-theory,complex-frame
|
|
15
15
|
Platform: Windows
|
|
16
16
|
Platform: Linux
|
|
@@ -50,14 +50,14 @@ Requires-Dist: matplotlib>=3.3.0
|
|
|
50
50
|
[](https://pypi.org/project/coordinate-system/)
|
|
51
51
|
[](LICENSE)
|
|
52
52
|
|
|
53
|
-
**
|
|
54
|
-
**Version:** 7.0
|
|
53
|
+
**Authors:** Pan Guojun
|
|
54
|
+
**Version:** 7.1.0
|
|
55
55
|
**License:** MIT
|
|
56
|
-
**DOI:**
|
|
56
|
+
**DOI:** https://doi.org/10.5281/zenodo.14435613
|
|
57
57
|
|
|
58
58
|
---
|
|
59
59
|
|
|
60
|
-
## What's New in v7.0
|
|
60
|
+
## What's New in v7.1.0 (2026-01-16)
|
|
61
61
|
|
|
62
62
|
- **Physical Constants**: Added SI unit constants for precision calculations (ALPHA_FS, LAMBDA_C, ALPHA_PROJECTION)
|
|
63
63
|
- **Projection Factor**: Implemented α = α_fs × λ_c ≈ 1.77×10⁻¹⁴ m for geometry-gauge coupling
|
|
@@ -199,7 +199,7 @@ S_YM = F_xy.yang_mills_action()
|
|
|
199
199
|
|
|
200
200
|
| Concept | Formula | Code |
|
|
201
201
|
|---------|---------|------|
|
|
202
|
-
| Projection Factor (v7.0
|
|
202
|
+
| Projection Factor (v7.1.0) | $\alpha = \alpha_{\text{fs}} \times \lambda_c \approx 1.77 \times 10^{-14}$ m | `ALPHA_PROJECTION` |
|
|
203
203
|
| Intrinsic Gradient | $G_\mu = \frac{d}{dx^\mu} \log C(x)$ | `IntrinsicGradient` |
|
|
204
204
|
| Curvature Tensor | $R_{\mu\nu} = [G_\mu, G_\nu]$ | `CurvatureFromFrame` |
|
|
205
205
|
| Gaussian Curvature | $K = -\langle [G_u, G_v] e_v, e_u \rangle / \sqrt{\det g}$ | `compute_gaussian_curvature` |
|
|
@@ -236,7 +236,7 @@ S_YM = F_xy.yang_mills_action()
|
|
|
236
236
|
|
|
237
237
|
## Changelog
|
|
238
238
|
|
|
239
|
-
### v7.0
|
|
239
|
+
### v7.1.0 (2026-01-16)
|
|
240
240
|
- **Physical Constants**: Added SI unit constants (ALPHA_FS, LAMBDA_C, ALPHA_PROJECTION)
|
|
241
241
|
- **Projection Factor**: Implemented α = α_fs × λ_c ≈ 1.77×10⁻¹⁴ m for geometry-gauge coupling
|
|
242
242
|
- **Complex Geometric Physics**: Added `projection_factor` parameter to unified field solver
|
|
@@ -253,7 +253,7 @@ S_YM = F_xy.yang_mills_action()
|
|
|
253
253
|
- **EnergyMomentumTensor**: Real-imaginary tensor decomposition
|
|
254
254
|
- **Unified Field Solver**: Einstein tensor, Chern-Simons current, topological energy-momentum
|
|
255
255
|
- **Complete English Translation**: All documentation and code comments in English
|
|
256
|
-
- **DOI
|
|
256
|
+
- **DOI:** https://doi.org/10.5281/zenodo.14435613
|
|
257
257
|
|
|
258
258
|
### v6.0.4 (2025-12-08)
|
|
259
259
|
- `frames.py` → `spectral_geometry.py`
|
|
@@ -6,14 +6,14 @@
|
|
|
6
6
|
[](https://pypi.org/project/coordinate-system/)
|
|
7
7
|
[](LICENSE)
|
|
8
8
|
|
|
9
|
-
**
|
|
10
|
-
**Version:** 7.0
|
|
9
|
+
**Authors:** Pan Guojun
|
|
10
|
+
**Version:** 7.1.0
|
|
11
11
|
**License:** MIT
|
|
12
|
-
**DOI:**
|
|
12
|
+
**DOI:** https://doi.org/10.5281/zenodo.14435613
|
|
13
13
|
|
|
14
14
|
---
|
|
15
15
|
|
|
16
|
-
## What's New in v7.0
|
|
16
|
+
## What's New in v7.1.0 (2026-01-16)
|
|
17
17
|
|
|
18
18
|
- **Physical Constants**: Added SI unit constants for precision calculations (ALPHA_FS, LAMBDA_C, ALPHA_PROJECTION)
|
|
19
19
|
- **Projection Factor**: Implemented α = α_fs × λ_c ≈ 1.77×10⁻¹⁴ m for geometry-gauge coupling
|
|
@@ -155,7 +155,7 @@ S_YM = F_xy.yang_mills_action()
|
|
|
155
155
|
|
|
156
156
|
| Concept | Formula | Code |
|
|
157
157
|
|---------|---------|------|
|
|
158
|
-
| Projection Factor (v7.0
|
|
158
|
+
| Projection Factor (v7.1.0) | $\alpha = \alpha_{\text{fs}} \times \lambda_c \approx 1.77 \times 10^{-14}$ m | `ALPHA_PROJECTION` |
|
|
159
159
|
| Intrinsic Gradient | $G_\mu = \frac{d}{dx^\mu} \log C(x)$ | `IntrinsicGradient` |
|
|
160
160
|
| Curvature Tensor | $R_{\mu\nu} = [G_\mu, G_\nu]$ | `CurvatureFromFrame` |
|
|
161
161
|
| Gaussian Curvature | $K = -\langle [G_u, G_v] e_v, e_u \rangle / \sqrt{\det g}$ | `compute_gaussian_curvature` |
|
|
@@ -192,7 +192,7 @@ S_YM = F_xy.yang_mills_action()
|
|
|
192
192
|
|
|
193
193
|
## Changelog
|
|
194
194
|
|
|
195
|
-
### v7.0
|
|
195
|
+
### v7.1.0 (2026-01-16)
|
|
196
196
|
- **Physical Constants**: Added SI unit constants (ALPHA_FS, LAMBDA_C, ALPHA_PROJECTION)
|
|
197
197
|
- **Projection Factor**: Implemented α = α_fs × λ_c ≈ 1.77×10⁻¹⁴ m for geometry-gauge coupling
|
|
198
198
|
- **Complex Geometric Physics**: Added `projection_factor` parameter to unified field solver
|
|
@@ -209,7 +209,7 @@ S_YM = F_xy.yang_mills_action()
|
|
|
209
209
|
- **EnergyMomentumTensor**: Real-imaginary tensor decomposition
|
|
210
210
|
- **Unified Field Solver**: Einstein tensor, Chern-Simons current, topological energy-momentum
|
|
211
211
|
- **Complete English Translation**: All documentation and code comments in English
|
|
212
|
-
- **DOI
|
|
212
|
+
- **DOI:** https://doi.org/10.5281/zenodo.14435613
|
|
213
213
|
|
|
214
214
|
### v6.0.4 (2025-12-08)
|
|
215
215
|
- `frames.py` → `spectral_geometry.py`
|
|
@@ -23,13 +23,23 @@ Group Correspondence:
|
|
|
23
23
|
- FourierFrame ∈ GL(1,C) = U(1) × R⁺
|
|
24
24
|
- U3Frame ∈ U(3) = SU(3) × U(1)
|
|
25
25
|
|
|
26
|
-
|
|
27
|
-
|
|
26
|
+
**Authors:** Pan Guojun
|
|
27
|
+
Version: 7.1.0
|
|
28
|
+
**DOI:** https://doi.org/10.5281/zenodo.14435613
|
|
28
29
|
"""
|
|
29
30
|
|
|
30
|
-
__version__ = '7.0
|
|
31
|
-
|
|
32
|
-
from .coordinate_system import
|
|
31
|
+
__version__ = '7.1.0'
|
|
32
|
+
|
|
33
|
+
from .coordinate_system import (
|
|
34
|
+
vec3,
|
|
35
|
+
vec2,
|
|
36
|
+
cross,
|
|
37
|
+
cross_right,
|
|
38
|
+
set_handedness,
|
|
39
|
+
get_handedness,
|
|
40
|
+
is_left_handed,
|
|
41
|
+
is_right_handed,
|
|
42
|
+
)
|
|
33
43
|
from .coordinate_system import quat
|
|
34
44
|
from .coordinate_system import coord3
|
|
35
45
|
|
|
@@ -41,24 +51,32 @@ from .differential_geometry import (
|
|
|
41
51
|
Torus,
|
|
42
52
|
|
|
43
53
|
# Core classes
|
|
44
|
-
MetricTensor,
|
|
45
|
-
GradientResult,
|
|
46
|
-
IntrinsicGradientOperator,
|
|
47
|
-
IntrinsicGradientCurvatureCalculator,
|
|
48
|
-
|
|
54
|
+
MetricTensor,
|
|
55
|
+
GradientResult,
|
|
56
|
+
IntrinsicGradientOperator,
|
|
57
|
+
IntrinsicGradientCurvatureCalculator,
|
|
58
|
+
LieGroupCurvatureCalculator,
|
|
59
|
+
CurvatureCalculator,
|
|
49
60
|
|
|
50
61
|
# Intrinsic gradient method functions (default)
|
|
51
|
-
compute_gaussian_curvature,
|
|
52
|
-
compute_mean_curvature,
|
|
53
|
-
compute_riemann_curvature,
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
+
compute_gaussian_curvature,
|
|
63
|
+
compute_mean_curvature,
|
|
64
|
+
compute_riemann_curvature,
|
|
65
|
+
compute_curvature_tensor,
|
|
66
|
+
compute_all_curvatures,
|
|
67
|
+
compute_intrinsic_gradient,
|
|
68
|
+
|
|
69
|
+
# Intrinsic gradient legacy aliases
|
|
70
|
+
intrinsic_gradient_gaussian_curvature,
|
|
71
|
+
intrinsic_gradient_mean_curvature,
|
|
72
|
+
intrinsic_gradient_principal_curvatures,
|
|
73
|
+
intrinsic_gradient_all_curvatures,
|
|
74
|
+
|
|
75
|
+
# Classical method functions
|
|
76
|
+
gaussian_curvature_classical,
|
|
77
|
+
mean_curvature_classical,
|
|
78
|
+
principal_curvatures_classical,
|
|
79
|
+
all_curvatures_classical,
|
|
62
80
|
|
|
63
81
|
# Backward compatibility aliases
|
|
64
82
|
gaussian_curvature,
|
|
@@ -66,8 +84,9 @@ from .differential_geometry import (
|
|
|
66
84
|
principal_curvatures,
|
|
67
85
|
all_curvatures,
|
|
68
86
|
|
|
69
|
-
# Method comparison
|
|
70
|
-
compare_methods,
|
|
87
|
+
# Method comparison
|
|
88
|
+
compare_methods,
|
|
89
|
+
gaussian_curvature_lie,
|
|
71
90
|
|
|
72
91
|
# Utility functions
|
|
73
92
|
derivative_5pt,
|
|
@@ -115,10 +134,11 @@ from .u3_frame import (
|
|
|
115
134
|
)
|
|
116
135
|
|
|
117
136
|
# Complex Geometric Physics module (Christmas Equation, CFUT)
|
|
118
|
-
from .complex_geometric_physics import (
|
|
119
|
-
# Core classes (U3Frame imported from u3_frame module above)
|
|
120
|
-
|
|
121
|
-
|
|
137
|
+
from .complex_geometric_physics import (
|
|
138
|
+
# Core classes (U3Frame imported from u3_frame module above)
|
|
139
|
+
ComplexFrame,
|
|
140
|
+
EnergyMomentumTensor,
|
|
141
|
+
ChristmasEquation,
|
|
122
142
|
|
|
123
143
|
# Utility functions
|
|
124
144
|
create_flat_spacetime_frame,
|
|
@@ -158,22 +178,28 @@ __all__ = [
|
|
|
158
178
|
# Constants
|
|
159
179
|
'ZERO3', 'UNITX', 'UNITY', 'UNITZ', 'ONE3', 'ONE4', 'ONEC',
|
|
160
180
|
|
|
161
|
-
# Core types
|
|
162
|
-
'vec3', 'vec2', 'quat', 'coord3', 'lerp',
|
|
181
|
+
# Core types
|
|
182
|
+
'vec3', 'vec2', 'quat', 'coord3', 'lerp', 'cross', 'cross_right',
|
|
183
|
+
'set_handedness', 'get_handedness', 'is_left_handed', 'is_right_handed',
|
|
163
184
|
|
|
164
185
|
# Differential geometry - Surface classes
|
|
165
186
|
'Surface', 'Sphere', 'Torus',
|
|
166
187
|
|
|
167
188
|
# Differential geometry - Core classes
|
|
168
189
|
'MetricTensor', 'GradientResult',
|
|
169
|
-
'IntrinsicGradientOperator', 'IntrinsicGradientCurvatureCalculator',
|
|
170
|
-
'
|
|
190
|
+
'IntrinsicGradientOperator', 'IntrinsicGradientCurvatureCalculator',
|
|
191
|
+
'LieGroupCurvatureCalculator',
|
|
192
|
+
'CurvatureCalculator',
|
|
171
193
|
|
|
172
194
|
# Differential geometry - Intrinsic gradient method (default)
|
|
173
|
-
'compute_gaussian_curvature', 'compute_mean_curvature',
|
|
174
|
-
'compute_riemann_curvature', 'compute_all_curvatures',
|
|
175
|
-
'compute_intrinsic_gradient',
|
|
176
|
-
|
|
195
|
+
'compute_gaussian_curvature', 'compute_mean_curvature',
|
|
196
|
+
'compute_riemann_curvature', 'compute_curvature_tensor', 'compute_all_curvatures',
|
|
197
|
+
'compute_intrinsic_gradient',
|
|
198
|
+
|
|
199
|
+
# Differential geometry - Intrinsic gradient legacy aliases
|
|
200
|
+
'intrinsic_gradient_gaussian_curvature', 'intrinsic_gradient_mean_curvature',
|
|
201
|
+
'intrinsic_gradient_principal_curvatures', 'intrinsic_gradient_all_curvatures',
|
|
202
|
+
|
|
177
203
|
# Differential geometry - Classical method
|
|
178
204
|
'gaussian_curvature_classical', 'mean_curvature_classical',
|
|
179
205
|
'principal_curvatures_classical', 'all_curvatures_classical',
|
|
@@ -183,8 +209,8 @@ __all__ = [
|
|
|
183
209
|
'principal_curvatures', 'all_curvatures',
|
|
184
210
|
|
|
185
211
|
# Differential geometry - Comparison and utilities
|
|
186
|
-
'compare_methods',
|
|
187
|
-
'derivative_5pt', 'derivative_2nd_5pt', 'richardson_extrapolation',
|
|
212
|
+
'compare_methods', 'gaussian_curvature_lie',
|
|
213
|
+
'derivative_5pt', 'derivative_2nd_5pt', 'richardson_extrapolation',
|
|
188
214
|
|
|
189
215
|
# Spectral geometry module (FourierFrame, GL(1,C))
|
|
190
216
|
'FourierFrame', 'FourierFrameSpectrum',
|
|
@@ -193,11 +219,17 @@ __all__ = [
|
|
|
193
219
|
'spectral_transform', 'inverse_spectral_transform',
|
|
194
220
|
'HBAR', 'GPU_AVAILABLE',
|
|
195
221
|
|
|
196
|
-
# U(3) Frame module (Gauge theory)
|
|
197
|
-
'U3Frame', 'SU3Component',
|
|
198
|
-
'GaugeConnection', 'FieldStrength',
|
|
199
|
-
'SymmetryBreakingPotential',
|
|
200
|
-
|
|
222
|
+
# U(3) Frame module (Gauge theory)
|
|
223
|
+
'U3Frame', 'SU3Component',
|
|
224
|
+
'GaugeConnection', 'FieldStrength',
|
|
225
|
+
'SymmetryBreakingPotential',
|
|
226
|
+
|
|
227
|
+
# Complex Geometric Physics
|
|
228
|
+
'ComplexFrame', 'EnergyMomentumTensor', 'ChristmasEquation',
|
|
229
|
+
'create_flat_spacetime_frame', 'create_curved_spacetime_frame',
|
|
230
|
+
'create_gauge_field_frame', 'M_PLANCK', 'LAMBDA_TOPO',
|
|
231
|
+
'ALPHA_FS', 'LAMBDA_C', 'ALPHA_PROJECTION',
|
|
232
|
+
|
|
201
233
|
# Visualization
|
|
202
234
|
'CoordinateSystemVisualizer', 'CurveVisualizer', 'ParametricCurve',
|
|
203
235
|
'visualize_coord_system', 'visualize_curve',
|
|
@@ -284,16 +316,26 @@ class CoordTuple(tuple):
|
|
|
284
316
|
return (result.x, result.y, result.z)
|
|
285
317
|
|
|
286
318
|
|
|
287
|
-
# Store original coord3 operators
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
319
|
+
# Store original coord3 operators
|
|
320
|
+
_original_coord3_init = coord3.__init__
|
|
321
|
+
_original_coord3_mul = coord3.__mul__
|
|
322
|
+
_original_coord3_rmul = coord3.__rmul__
|
|
323
|
+
_original_coord3_truediv = getattr(coord3, '__truediv__', None)
|
|
324
|
+
|
|
325
|
+
|
|
326
|
+
def _new_coord3_init(self, *args, **kwargs):
|
|
327
|
+
"""Extended coord3 initializer with two-axis convenience."""
|
|
328
|
+
if len(args) == 2 and all(isinstance(arg, vec3) for arg in args):
|
|
329
|
+
ux, uy = args
|
|
330
|
+
uz = ux.cross(uy)
|
|
331
|
+
return _original_coord3_init(self, ux, uy, uz)
|
|
332
|
+
return _original_coord3_init(self, *args, **kwargs)
|
|
333
|
+
|
|
334
|
+
|
|
335
|
+
def _new_coord3_mul(self, other):
|
|
336
|
+
"""Enhanced multiplication operator for coord3."""
|
|
337
|
+
if isinstance(other, tuple):
|
|
338
|
+
other = CoordTuple(other)
|
|
297
339
|
return other * self
|
|
298
340
|
return _original_coord3_mul(self, other)
|
|
299
341
|
|
|
@@ -316,7 +358,8 @@ def _new_coord3_truediv(self, other):
|
|
|
316
358
|
raise TypeError(f"unsupported operand type(s) for /: 'coord3' and {type(other).__name__}")
|
|
317
359
|
|
|
318
360
|
|
|
319
|
-
# Apply enhancements to coord3 operators
|
|
320
|
-
coord3.
|
|
321
|
-
coord3.
|
|
322
|
-
coord3.
|
|
361
|
+
# Apply enhancements to coord3 operators
|
|
362
|
+
coord3.__init__ = _new_coord3_init
|
|
363
|
+
coord3.__mul__ = _new_coord3_mul
|
|
364
|
+
coord3.__rmul__ = _new_coord3_rmul
|
|
365
|
+
coord3.__truediv__ = _new_coord3_truediv
|