executable-engineering 0.1.47__py3-none-any.whl → 0.1.51__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.
@@ -88,6 +88,22 @@ from .integration_module import (
88
88
  plot_romberg_convergence,
89
89
  plot_gaussian_quadrature,
90
90
  )
91
+ from .numerical_integration_module import (
92
+ left_reimann,
93
+ visualize_left_reimann,
94
+ right_reimann,
95
+ visualize_right_reimann,
96
+ midpoint_riemann,
97
+ visualize_midpoint_riemann,
98
+ trapezoid_rule,
99
+ visualize_trapezoid_rule,
100
+ simpsons_13,
101
+ visualize_simpsons_13,
102
+ simpsons_38,
103
+ visualize_simpsons_38,
104
+ )
105
+
106
+ from .display_code_module import display_source
91
107
 
92
108
  __all__ = [
93
109
  "interactive_neural_network",
@@ -180,4 +196,17 @@ __all__ = [
180
196
  "plot_simpson_rule",
181
197
  "plot_romberg_convergence",
182
198
  "plot_gaussian_quadrature",
199
+ "left_reimann",
200
+ "visualize_left_reimann",
201
+ "right_reimann",
202
+ "visualize_right_reimann",
203
+ "midpoint_riemann",
204
+ "visualize_midpoint_riemann",
205
+ "trapezoid_rule",
206
+ "visualize_trapezoid_rule",
207
+ "simpsons_13",
208
+ "visualize_simpsons_13",
209
+ "simpsons_38",
210
+ "visualize_simpsons_38",
211
+ "display_source",
183
212
  ]
@@ -0,0 +1,7 @@
1
+ import inspect
2
+ from IPython.display import Code, display
3
+
4
+ def display_source(func):
5
+ """Dynamically displays the source code of a function."""
6
+ source_code = inspect.getsource(func)
7
+ display(Code(source_code, language='python'))
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: executable_engineering
3
- Version: 0.1.47
3
+ Version: 0.1.51
4
4
  Summary: Demonstrative tools for the Executable Engineering textbook
5
5
  Home-page: https://github.com/themintlab/ExecutableEngineering/tree/main/executable_engineering
6
6
  Author: Michael Welland
@@ -1,8 +1,9 @@
1
- executable_engineering/__init__.py,sha256=S8LE_RNmO4KIkEe99GTOfahH-rUxVpFfawFGh3lffkM,4772
1
+ executable_engineering/__init__.py,sha256=fKxp2PmDCU00Fn7hZnrAsXvdOnT3n6CCA3QSbi4LmMk,5459
2
2
  executable_engineering/closedoptimization_module.py,sha256=7J6espVpgjRRwQvx35QXuaaigdX9R-P2wN5JTSpi5fI,14076
3
3
  executable_engineering/closedrootfinder_module.py,sha256=hQ6iWNi16RkZTaE_WPUEwkohmrYrAyU8WWSXO2EPLJY,6000
4
4
  executable_engineering/constrainedoptimization_module.py,sha256=rNqVnwGZdFRgc653dYM9iBy0WOcMtNF5GmtXBHzXV2k,5061
5
5
  executable_engineering/differentiation_module.py,sha256=SNzT7R56h74dgXKvu-Z9i15A0z8-FzeRuTMz8vHEm1k,22490
6
+ executable_engineering/display_code_module.py,sha256=KOeRQwP3O7QuD6kxwzN2HKp2uY2i1pOaI05HkxgXpLo,239
6
7
  executable_engineering/functions_module.py,sha256=rmjHi2Q_KqAmcwFnB01SluLeHwlqDZSEBiYy9Pehdpc,10780
7
8
  executable_engineering/gradientoptimization_module.py,sha256=-2fErE9cemSEPeV9PlWOf4cF7Tr6DjilEw_NxvE-JYw,6601
8
9
  executable_engineering/integration_module.py,sha256=WVEJlSH6vZamt4gaoWYvPczcdIMVRsrVj0rzt7b9cqY,22841
@@ -13,8 +14,8 @@ executable_engineering/numerical_integration_module.py,sha256=nDbhwKpnbQ6Y95uyWw
13
14
  executable_engineering/openoptimization_module.py,sha256=FJCnrgWS5G1Rz07F_5lxXdwBMdk0O7ll8epA-Y4gCvc,13083
14
15
  executable_engineering/openrootfinder_module.py,sha256=R_lPtCQsIGLXV-j_uDpQepImOOgtgA7I6qnhUPwWLLc,5944
15
16
  executable_engineering/optimization_module.py,sha256=GZtLSWY4VaF39HYg29HU3ZdU7yF-q5s2f8QlF6E1Uqw,12097
16
- executable_engineering-0.1.47.dist-info/licenses/LICENSE,sha256=Tg4nrt8rFhgpkPbIA8SWoCR3MlGLw0NufB8AE6-TH_o,1074
17
- executable_engineering-0.1.47.dist-info/METADATA,sha256=MhXzK1TE5E0itSKNKfLAE7lhmRkoBIBDX39SjXec0OY,1648
18
- executable_engineering-0.1.47.dist-info/WHEEL,sha256=mOdXR9C3wMVov7cSY8PY-XCzo3SmmWCHvGQr5csJoao,91
19
- executable_engineering-0.1.47.dist-info/top_level.txt,sha256=0U5ATV5WGTLvN9rRSjQ54TyL-ztTyXaN3FzZ_QMq4HM,23
20
- executable_engineering-0.1.47.dist-info/RECORD,,
17
+ executable_engineering-0.1.51.dist-info/licenses/LICENSE,sha256=Tg4nrt8rFhgpkPbIA8SWoCR3MlGLw0NufB8AE6-TH_o,1074
18
+ executable_engineering-0.1.51.dist-info/METADATA,sha256=h5FWmiSJ7nv3EfjtYRf9ISmNAIqnd31mgCIijGlnLz8,1648
19
+ executable_engineering-0.1.51.dist-info/WHEEL,sha256=mOdXR9C3wMVov7cSY8PY-XCzo3SmmWCHvGQr5csJoao,91
20
+ executable_engineering-0.1.51.dist-info/top_level.txt,sha256=0U5ATV5WGTLvN9rRSjQ54TyL-ztTyXaN3FzZ_QMq4HM,23
21
+ executable_engineering-0.1.51.dist-info/RECORD,,