executable-engineering 0.1.48__tar.gz → 0.1.52__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.
- {executable_engineering-0.1.48 → executable_engineering-0.1.52}/PKG-INFO +1 -1
- {executable_engineering-0.1.48 → executable_engineering-0.1.52}/executable_engineering/__init__.py +11 -8
- executable_engineering-0.1.52/executable_engineering/display_code_module.py +7 -0
- {executable_engineering-0.1.48 → executable_engineering-0.1.52}/executable_engineering/numerical_integration_module.py +4 -4
- {executable_engineering-0.1.48 → executable_engineering-0.1.52}/executable_engineering.egg-info/PKG-INFO +1 -1
- {executable_engineering-0.1.48 → executable_engineering-0.1.52}/executable_engineering.egg-info/SOURCES.txt +1 -0
- {executable_engineering-0.1.48 → executable_engineering-0.1.52}/setup.py +1 -1
- {executable_engineering-0.1.48 → executable_engineering-0.1.52}/LICENSE +0 -0
- {executable_engineering-0.1.48 → executable_engineering-0.1.52}/README.md +0 -0
- {executable_engineering-0.1.48 → executable_engineering-0.1.52}/executable_engineering/closedoptimization_module.py +0 -0
- {executable_engineering-0.1.48 → executable_engineering-0.1.52}/executable_engineering/closedrootfinder_module.py +0 -0
- {executable_engineering-0.1.48 → executable_engineering-0.1.52}/executable_engineering/constrainedoptimization_module.py +0 -0
- {executable_engineering-0.1.48 → executable_engineering-0.1.52}/executable_engineering/differentiation_module.py +0 -0
- {executable_engineering-0.1.48 → executable_engineering-0.1.52}/executable_engineering/functions_module.py +0 -0
- {executable_engineering-0.1.48 → executable_engineering-0.1.52}/executable_engineering/gradientoptimization_module.py +0 -0
- {executable_engineering-0.1.48 → executable_engineering-0.1.52}/executable_engineering/integration_module.py +0 -0
- {executable_engineering-0.1.48 → executable_engineering-0.1.52}/executable_engineering/linearsystems_module.py +0 -0
- {executable_engineering-0.1.48 → executable_engineering-0.1.52}/executable_engineering/neuralnet_module.py +0 -0
- {executable_engineering-0.1.48 → executable_engineering-0.1.52}/executable_engineering/numerical_error_module.py +0 -0
- {executable_engineering-0.1.48 → executable_engineering-0.1.52}/executable_engineering/openoptimization_module.py +0 -0
- {executable_engineering-0.1.48 → executable_engineering-0.1.52}/executable_engineering/openrootfinder_module.py +0 -0
- {executable_engineering-0.1.48 → executable_engineering-0.1.52}/executable_engineering/optimization_module.py +0 -0
- {executable_engineering-0.1.48 → executable_engineering-0.1.52}/executable_engineering.egg-info/dependency_links.txt +0 -0
- {executable_engineering-0.1.48 → executable_engineering-0.1.52}/executable_engineering.egg-info/requires.txt +0 -0
- {executable_engineering-0.1.48 → executable_engineering-0.1.52}/executable_engineering.egg-info/top_level.txt +0 -0
- {executable_engineering-0.1.48 → executable_engineering-0.1.52}/pyproject.toml +0 -0
- {executable_engineering-0.1.48 → executable_engineering-0.1.52}/setup.cfg +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: executable_engineering
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.52
|
|
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
|
{executable_engineering-0.1.48 → executable_engineering-0.1.52}/executable_engineering/__init__.py
RENAMED
|
@@ -89,10 +89,10 @@ from .integration_module import (
|
|
|
89
89
|
plot_gaussian_quadrature,
|
|
90
90
|
)
|
|
91
91
|
from .numerical_integration_module import (
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
92
|
+
left_riemann,
|
|
93
|
+
visualize_left_riemann,
|
|
94
|
+
right_riemann,
|
|
95
|
+
visualize_right_riemann,
|
|
96
96
|
midpoint_riemann,
|
|
97
97
|
visualize_midpoint_riemann,
|
|
98
98
|
trapezoid_rule,
|
|
@@ -103,6 +103,8 @@ from .numerical_integration_module import (
|
|
|
103
103
|
visualize_simpsons_38,
|
|
104
104
|
)
|
|
105
105
|
|
|
106
|
+
from .display_code_module import display_source
|
|
107
|
+
|
|
106
108
|
__all__ = [
|
|
107
109
|
"interactive_neural_network",
|
|
108
110
|
"train_until_convergence",
|
|
@@ -194,10 +196,10 @@ __all__ = [
|
|
|
194
196
|
"plot_simpson_rule",
|
|
195
197
|
"plot_romberg_convergence",
|
|
196
198
|
"plot_gaussian_quadrature",
|
|
197
|
-
"
|
|
198
|
-
"
|
|
199
|
-
"
|
|
200
|
-
"
|
|
199
|
+
"left_riemann",
|
|
200
|
+
"visualize_left_riemann",
|
|
201
|
+
"right_riemann",
|
|
202
|
+
"visualize_right_riemann",
|
|
201
203
|
"midpoint_riemann",
|
|
202
204
|
"visualize_midpoint_riemann",
|
|
203
205
|
"trapezoid_rule",
|
|
@@ -206,4 +208,5 @@ __all__ = [
|
|
|
206
208
|
"visualize_simpsons_13",
|
|
207
209
|
"simpsons_38",
|
|
208
210
|
"visualize_simpsons_38",
|
|
211
|
+
"display_source",
|
|
209
212
|
]
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import numpy as np
|
|
2
2
|
import plotly.graph_objects as go
|
|
3
3
|
|
|
4
|
-
def
|
|
4
|
+
def left_riemann(f, a, b, h):
|
|
5
5
|
x_left = np.arange(a, b, h)
|
|
6
6
|
y_left = f(x_left)
|
|
7
7
|
integral_approx = np.sum(y_left * h)
|
|
@@ -16,7 +16,7 @@ def left_reimann(f, a, b, h):
|
|
|
16
16
|
}
|
|
17
17
|
|
|
18
18
|
|
|
19
|
-
def
|
|
19
|
+
def visualize_left_riemann(f, data):
|
|
20
20
|
x_left = data["x_left"]
|
|
21
21
|
y_left = data["y_left"]
|
|
22
22
|
integral_approx = data["integral_approx"]
|
|
@@ -132,7 +132,7 @@ def visualize_left_reimann(f, data):
|
|
|
132
132
|
return fig
|
|
133
133
|
|
|
134
134
|
|
|
135
|
-
def
|
|
135
|
+
def right_riemann(f, a, b, h):
|
|
136
136
|
x_right = np.arange(a + h, b + h, h)
|
|
137
137
|
x_right = x_right[x_right <= b]
|
|
138
138
|
y_right = f(x_right)
|
|
@@ -149,7 +149,7 @@ def right_reimann(f, a, b, h):
|
|
|
149
149
|
}
|
|
150
150
|
|
|
151
151
|
|
|
152
|
-
def
|
|
152
|
+
def visualize_right_riemann(f, data):
|
|
153
153
|
x_right = data["x_right"]
|
|
154
154
|
y_right = data["y_right"]
|
|
155
155
|
integral_approx = data["integral_approx"]
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: executable_engineering
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.52
|
|
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
|
|
@@ -7,6 +7,7 @@ executable_engineering/closedoptimization_module.py
|
|
|
7
7
|
executable_engineering/closedrootfinder_module.py
|
|
8
8
|
executable_engineering/constrainedoptimization_module.py
|
|
9
9
|
executable_engineering/differentiation_module.py
|
|
10
|
+
executable_engineering/display_code_module.py
|
|
10
11
|
executable_engineering/functions_module.py
|
|
11
12
|
executable_engineering/gradientoptimization_module.py
|
|
12
13
|
executable_engineering/integration_module.py
|
|
@@ -6,7 +6,7 @@ long_description = (this_directory / "README.md").read_text(encoding="utf-8")
|
|
|
6
6
|
|
|
7
7
|
setup(
|
|
8
8
|
name="executable_engineering",
|
|
9
|
-
version="0.1.
|
|
9
|
+
version="0.1.52",
|
|
10
10
|
description="Demonstrative tools for the Executable Engineering textbook",
|
|
11
11
|
long_description=long_description,
|
|
12
12
|
long_description_content_type="text/markdown",
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|