abstract-math 0.0.0.27__py3-none-any.whl → 0.0.0.29__py3-none-any.whl
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/solar_math/main.py +2 -1
- abstract_math/solar_math/src/constants/planet_constants.py +2 -2
- abstract_math/solar_math/src/imports.py +1 -1
- {abstract_math-0.0.0.27.dist-info → abstract_math-0.0.0.29.dist-info}/METADATA +1 -1
- {abstract_math-0.0.0.27.dist-info → abstract_math-0.0.0.29.dist-info}/RECORD +7 -7
- {abstract_math-0.0.0.27.dist-info → abstract_math-0.0.0.29.dist-info}/WHEEL +1 -1
- {abstract_math-0.0.0.27.dist-info → abstract_math-0.0.0.29.dist-info}/top_level.txt +0 -0
abstract_math/solar_math/main.py
CHANGED
|
@@ -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:
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import math
|
|
2
2
|
from typing import Dict, Callable, Optional, Any
|
|
3
3
|
from ...safe_math import (
|
|
4
|
-
multiply_it as mul, divide_it as div, add_it as add, subtract_it as sub, exp_it as exp
|
|
4
|
+
multiply_it as mul,exp_it as exp, divide_it as div, add_it as add, subtract_it as sub, exp_it as exp
|
|
5
5
|
)
|
|
@@ -6,18 +6,18 @@ abstract_math/flask_scripts/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMp
|
|
|
6
6
|
abstract_math/flask_scripts/flask_utils.py,sha256=bXF4PS1qJ1SDA2w6ecNHK1A3FmN4P-F2U6l6wPwhZgE,28511
|
|
7
7
|
abstract_math/solar_math/__init__.py,sha256=FfPkmWi3cQ3BLvUUUf6k22rGBE8scDL1EoM5l24biVo,39
|
|
8
8
|
abstract_math/solar_math/flask_utils.py,sha256=c82LrZ0dKC3Y8LxqOs1zDR6gRy8oXSx9balBD18gNB0,459
|
|
9
|
-
abstract_math/solar_math/main.py,sha256=
|
|
9
|
+
abstract_math/solar_math/main.py,sha256=G97ayUAoxVL70zXG3TZmU2cT3bNTXscRgHgM3gcU7zs,9608
|
|
10
10
|
abstract_math/solar_math/src/__init__.py,sha256=qeal73F-NLu6sO_YSmD_komVpe17f0OFy2IfBR2QU_s,70
|
|
11
|
-
abstract_math/solar_math/src/imports.py,sha256=
|
|
11
|
+
abstract_math/solar_math/src/imports.py,sha256=aiFyZLsoVwkGopAL0uLaIPordUizM7UT9shwShmf0f0,195
|
|
12
12
|
abstract_math/solar_math/src/constants/__init__.py,sha256=Xsb9_3DdF5HxqWOleD-6jQbv09XdDd6o8Urdqb8Af1s,801
|
|
13
13
|
abstract_math/solar_math/src/constants/distance_constants.py,sha256=1TM_dzo0semwZkk5kveRljzPYN0ry5yNCmwORks4yUs,2793
|
|
14
|
-
abstract_math/solar_math/src/constants/planet_constants.py,sha256=
|
|
14
|
+
abstract_math/solar_math/src/constants/planet_constants.py,sha256=h1jJQJmIQGYUY-__hiDCSUWjUfNjfmF7IYMByRHmMJk,6842
|
|
15
15
|
abstract_math/solar_math/src/constants/time_constants.py,sha256=i1gMbymsAkF23YwF4KGwEPpNuwNp1n5MCb4ALHdjxnU,1890
|
|
16
16
|
abstract_math/solar_math/src/utils/__init__.py,sha256=Vb2bfx1p9YSmhnbqXBjGVPt1OQZ9I7PG_fMQdFqj-3k,91
|
|
17
17
|
abstract_math/solar_math/src/utils/escape_velocity.py,sha256=nngwySzxqB7JOV1RLRHKj6O3v4O45yOIkV3lVchPdGg,4926
|
|
18
18
|
abstract_math/solar_math/src/utils/geometry_utils.py,sha256=Ij4mASNFp2-CWy425fxMTEuMPuAZHs-E0qvi3BjaNkk,4169
|
|
19
19
|
abstract_math/solar_math/src/utils/velocity_utils.py,sha256=eiXstQ3PF0KAUamSFOHFIL1chyWweygdTyvBjQB_DXo,1888
|
|
20
|
-
abstract_math-0.0.0.
|
|
21
|
-
abstract_math-0.0.0.
|
|
22
|
-
abstract_math-0.0.0.
|
|
23
|
-
abstract_math-0.0.0.
|
|
20
|
+
abstract_math-0.0.0.29.dist-info/METADATA,sha256=mfkSG5UzhcZITmBrUXNt9Fvmlq1QrDIhqMvuSf9o4DQ,3081
|
|
21
|
+
abstract_math-0.0.0.29.dist-info/WHEEL,sha256=wUyA8OaulRlbfwMtmQsvNngGrxQHAvkKcvRmdizlJi0,92
|
|
22
|
+
abstract_math-0.0.0.29.dist-info/top_level.txt,sha256=b7jOgD9c0U-CGH-l7yxhMPukzD40kMEQkQRV_sGyVfE,14
|
|
23
|
+
abstract_math-0.0.0.29.dist-info/RECORD,,
|
|
File without changes
|