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.

Files changed (30) hide show
  1. {abstract_math-0.0.0.27 → abstract_math-0.0.0.29}/PKG-INFO +1 -1
  2. {abstract_math-0.0.0.27 → abstract_math-0.0.0.29}/setup.py +1 -1
  3. {abstract_math-0.0.0.27 → abstract_math-0.0.0.29}/src/abstract_math/solar_math/main.py +2 -1
  4. {abstract_math-0.0.0.27 → abstract_math-0.0.0.29}/src/abstract_math/solar_math/src/constants/planet_constants.py +2 -2
  5. abstract_math-0.0.0.29/src/abstract_math/solar_math/src/imports.py +5 -0
  6. {abstract_math-0.0.0.27 → abstract_math-0.0.0.29}/src/abstract_math.egg-info/PKG-INFO +1 -1
  7. {abstract_math-0.0.0.27 → abstract_math-0.0.0.29}/src/abstract_math.egg-info/SOURCES.txt +2 -1
  8. abstract_math-0.0.0.29/tests/test.py +1 -0
  9. abstract_math-0.0.0.27/src/abstract_math/solar_math/src/imports.py +0 -5
  10. {abstract_math-0.0.0.27 → abstract_math-0.0.0.29}/README.md +0 -0
  11. {abstract_math-0.0.0.27 → abstract_math-0.0.0.29}/pyproject.toml +0 -0
  12. {abstract_math-0.0.0.27 → abstract_math-0.0.0.29}/setup.cfg +0 -0
  13. {abstract_math-0.0.0.27 → abstract_math-0.0.0.29}/src/abstract_math/__init__.py +0 -0
  14. {abstract_math-0.0.0.27 → abstract_math-0.0.0.29}/src/abstract_math/createflask.py +0 -0
  15. {abstract_math-0.0.0.27 → abstract_math-0.0.0.29}/src/abstract_math/derive_tokens.py +0 -0
  16. {abstract_math-0.0.0.27 → abstract_math-0.0.0.29}/src/abstract_math/flask_scripts/__init__.py +0 -0
  17. {abstract_math-0.0.0.27 → abstract_math-0.0.0.29}/src/abstract_math/flask_scripts/flask_utils.py +0 -0
  18. {abstract_math-0.0.0.27 → abstract_math-0.0.0.29}/src/abstract_math/safe_math.py +0 -0
  19. {abstract_math-0.0.0.27 → abstract_math-0.0.0.29}/src/abstract_math/solar_math/__init__.py +0 -0
  20. {abstract_math-0.0.0.27 → abstract_math-0.0.0.29}/src/abstract_math/solar_math/flask_utils.py +0 -0
  21. {abstract_math-0.0.0.27 → abstract_math-0.0.0.29}/src/abstract_math/solar_math/src/__init__.py +0 -0
  22. {abstract_math-0.0.0.27 → abstract_math-0.0.0.29}/src/abstract_math/solar_math/src/constants/__init__.py +0 -0
  23. {abstract_math-0.0.0.27 → abstract_math-0.0.0.29}/src/abstract_math/solar_math/src/constants/distance_constants.py +0 -0
  24. {abstract_math-0.0.0.27 → abstract_math-0.0.0.29}/src/abstract_math/solar_math/src/constants/time_constants.py +0 -0
  25. {abstract_math-0.0.0.27 → abstract_math-0.0.0.29}/src/abstract_math/solar_math/src/utils/__init__.py +0 -0
  26. {abstract_math-0.0.0.27 → abstract_math-0.0.0.29}/src/abstract_math/solar_math/src/utils/escape_velocity.py +0 -0
  27. {abstract_math-0.0.0.27 → abstract_math-0.0.0.29}/src/abstract_math/solar_math/src/utils/geometry_utils.py +0 -0
  28. {abstract_math-0.0.0.27 → abstract_math-0.0.0.29}/src/abstract_math/solar_math/src/utils/velocity_utils.py +0 -0
  29. {abstract_math-0.0.0.27 → abstract_math-0.0.0.29}/src/abstract_math.egg-info/dependency_links.txt +0 -0
  30. {abstract_math-0.0.0.27 → abstract_math-0.0.0.29}/src/abstract_math.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: abstract_math
3
- Version: 0.0.0.27
3
+ Version: 0.0.0.29
4
4
  Author: putkoff
5
5
  Author-email: partners@abstractendeavors.com
6
6
  Classifier: Development Status :: 3 - Alpha
@@ -4,7 +4,7 @@ with open("README.md", "r", encoding="utf-8") as fh:
4
4
  long_description = fh.read()
5
5
  setuptools.setup(
6
6
  name='abstract_math',
7
- version='0.0.0.27',
7
+ version='0.0.0.29',
8
8
  author='putkoff',
9
9
  author_email='partners@abstractendeavors.com',
10
10
  description="",
@@ -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": math.sqrt(mul(2.0, div(mu, r))),
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:
@@ -0,0 +1,5 @@
1
+ import math
2
+ from typing import Dict, Callable, Optional, Any
3
+ from ...safe_math import (
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
+ )
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: abstract_math
3
- Version: 0.0.0.27
3
+ Version: 0.0.0.29
4
4
  Author: putkoff
5
5
  Author-email: partners@abstractendeavors.com
6
6
  Classifier: Development Status :: 3 - Alpha
@@ -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 *
@@ -1,5 +0,0 @@
1
- import math
2
- from typing import Dict, Callable, Optional, Any
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
5
- )