abstract-math 0.0.0.27__tar.gz → 0.0.0.29__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.
Potentially problematic release.
This version of abstract-math might be problematic. Click here for more details.
- {abstract_math-0.0.0.27 → abstract_math-0.0.0.29}/PKG-INFO +1 -1
- {abstract_math-0.0.0.27 → abstract_math-0.0.0.29}/setup.py +1 -1
- {abstract_math-0.0.0.27 → abstract_math-0.0.0.29}/src/abstract_math/solar_math/main.py +2 -1
- {abstract_math-0.0.0.27 → abstract_math-0.0.0.29}/src/abstract_math/solar_math/src/constants/planet_constants.py +2 -2
- abstract_math-0.0.0.29/src/abstract_math/solar_math/src/imports.py +5 -0
- {abstract_math-0.0.0.27 → abstract_math-0.0.0.29}/src/abstract_math.egg-info/PKG-INFO +1 -1
- {abstract_math-0.0.0.27 → abstract_math-0.0.0.29}/src/abstract_math.egg-info/SOURCES.txt +2 -1
- abstract_math-0.0.0.29/tests/test.py +1 -0
- abstract_math-0.0.0.27/src/abstract_math/solar_math/src/imports.py +0 -5
- {abstract_math-0.0.0.27 → abstract_math-0.0.0.29}/README.md +0 -0
- {abstract_math-0.0.0.27 → abstract_math-0.0.0.29}/pyproject.toml +0 -0
- {abstract_math-0.0.0.27 → abstract_math-0.0.0.29}/setup.cfg +0 -0
- {abstract_math-0.0.0.27 → abstract_math-0.0.0.29}/src/abstract_math/__init__.py +0 -0
- {abstract_math-0.0.0.27 → abstract_math-0.0.0.29}/src/abstract_math/createflask.py +0 -0
- {abstract_math-0.0.0.27 → abstract_math-0.0.0.29}/src/abstract_math/derive_tokens.py +0 -0
- {abstract_math-0.0.0.27 → abstract_math-0.0.0.29}/src/abstract_math/flask_scripts/__init__.py +0 -0
- {abstract_math-0.0.0.27 → abstract_math-0.0.0.29}/src/abstract_math/flask_scripts/flask_utils.py +0 -0
- {abstract_math-0.0.0.27 → abstract_math-0.0.0.29}/src/abstract_math/safe_math.py +0 -0
- {abstract_math-0.0.0.27 → abstract_math-0.0.0.29}/src/abstract_math/solar_math/__init__.py +0 -0
- {abstract_math-0.0.0.27 → abstract_math-0.0.0.29}/src/abstract_math/solar_math/flask_utils.py +0 -0
- {abstract_math-0.0.0.27 → abstract_math-0.0.0.29}/src/abstract_math/solar_math/src/__init__.py +0 -0
- {abstract_math-0.0.0.27 → abstract_math-0.0.0.29}/src/abstract_math/solar_math/src/constants/__init__.py +0 -0
- {abstract_math-0.0.0.27 → abstract_math-0.0.0.29}/src/abstract_math/solar_math/src/constants/distance_constants.py +0 -0
- {abstract_math-0.0.0.27 → abstract_math-0.0.0.29}/src/abstract_math/solar_math/src/constants/time_constants.py +0 -0
- {abstract_math-0.0.0.27 → abstract_math-0.0.0.29}/src/abstract_math/solar_math/src/utils/__init__.py +0 -0
- {abstract_math-0.0.0.27 → abstract_math-0.0.0.29}/src/abstract_math/solar_math/src/utils/escape_velocity.py +0 -0
- {abstract_math-0.0.0.27 → abstract_math-0.0.0.29}/src/abstract_math/solar_math/src/utils/geometry_utils.py +0 -0
- {abstract_math-0.0.0.27 → abstract_math-0.0.0.29}/src/abstract_math/solar_math/src/utils/velocity_utils.py +0 -0
- {abstract_math-0.0.0.27 → abstract_math-0.0.0.29}/src/abstract_math.egg-info/dependency_links.txt +0 -0
- {abstract_math-0.0.0.27 → abstract_math-0.0.0.29}/src/abstract_math.egg-info/top_level.txt +0 -0
|
@@ -13,6 +13,7 @@ from .src.constants import (
|
|
|
13
13
|
DEFAULT_START_ALTITUDE,
|
|
14
14
|
DEFAULT_AS_RADIUS
|
|
15
15
|
)
|
|
16
|
+
|
|
16
17
|
def normalize_inputs(
|
|
17
18
|
planet: str,
|
|
18
19
|
start_altitude: float,
|
|
@@ -198,7 +199,7 @@ def simulate_radial_flight_si(
|
|
|
198
199
|
"hit_target": hit_target,
|
|
199
200
|
"turned_back": turned_back,
|
|
200
201
|
"traveled_m": traveled_m,
|
|
201
|
-
"vesc_end_mps":
|
|
202
|
+
"vesc_end_mps": exp(mul(2.0, div(mu, r)),-2),
|
|
202
203
|
|
|
203
204
|
# extended stats
|
|
204
205
|
"furthest_r": tracker["furthest_r"],
|
|
@@ -99,8 +99,8 @@ def planet_circumference(name: str = "earth", units: str = 'meters') -> float:
|
|
|
99
99
|
def planet_mass(name: str = "earth") -> float:
|
|
100
100
|
return get_planet_vars(name)["mass"]
|
|
101
101
|
|
|
102
|
-
def planet_surface_g(name: str = "earth", as_g0: bool = False) -> float:
|
|
103
|
-
v = get_planet_vars(name)["surface_g"]
|
|
102
|
+
def planet_surface_g(name: str = "earth", as_g0: bool = False, units: str = "meters") -> float:
|
|
103
|
+
v = get_planet_vars(name, units)["surface_g"]
|
|
104
104
|
return div(v, g0) if as_g0 else v
|
|
105
105
|
|
|
106
106
|
def escape_velocity(name: str = "earth", altitude: float = 0.0, units: str = "meters") -> float:
|
|
@@ -23,4 +23,5 @@ src/abstract_math/solar_math/src/constants/time_constants.py
|
|
|
23
23
|
src/abstract_math/solar_math/src/utils/__init__.py
|
|
24
24
|
src/abstract_math/solar_math/src/utils/escape_velocity.py
|
|
25
25
|
src/abstract_math/solar_math/src/utils/geometry_utils.py
|
|
26
|
-
src/abstract_math/solar_math/src/utils/velocity_utils.py
|
|
26
|
+
src/abstract_math/solar_math/src/utils/velocity_utils.py
|
|
27
|
+
tests/test.py
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
from imports import *
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{abstract_math-0.0.0.27 → abstract_math-0.0.0.29}/src/abstract_math/flask_scripts/__init__.py
RENAMED
|
File without changes
|
{abstract_math-0.0.0.27 → abstract_math-0.0.0.29}/src/abstract_math/flask_scripts/flask_utils.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{abstract_math-0.0.0.27 → abstract_math-0.0.0.29}/src/abstract_math/solar_math/flask_utils.py
RENAMED
|
File without changes
|
{abstract_math-0.0.0.27 → abstract_math-0.0.0.29}/src/abstract_math/solar_math/src/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{abstract_math-0.0.0.27 → abstract_math-0.0.0.29}/src/abstract_math/solar_math/src/utils/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{abstract_math-0.0.0.27 → abstract_math-0.0.0.29}/src/abstract_math.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
|
File without changes
|