executable-engineering 0.1.38__py3-none-any.whl → 0.1.40__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.
- executable_engineering/closedrootfinder_module.py +26 -18
- executable_engineering/openrootfinder_module.py +18 -12
- {executable_engineering-0.1.38.dist-info → executable_engineering-0.1.40.dist-info}/METADATA +1 -1
- {executable_engineering-0.1.38.dist-info → executable_engineering-0.1.40.dist-info}/RECORD +7 -7
- {executable_engineering-0.1.38.dist-info → executable_engineering-0.1.40.dist-info}/WHEEL +0 -0
- {executable_engineering-0.1.38.dist-info → executable_engineering-0.1.40.dist-info}/licenses/LICENSE +0 -0
- {executable_engineering-0.1.38.dist-info → executable_engineering-0.1.40.dist-info}/top_level.txt +0 -0
|
@@ -134,22 +134,30 @@ class RootFinderClosed:
|
|
|
134
134
|
)
|
|
135
135
|
plt.close(fig)
|
|
136
136
|
return HTML(anim.to_jshtml())
|
|
137
|
-
|
|
137
|
+
|
|
138
138
|
def show_toggle_closed(self, interval_ms=750):
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
139
|
+
bisect_anim_html = self._make_animation_closed('Bisection', interval_ms)
|
|
140
|
+
falsepos_anim_html = self._make_animation_closed('False Position', interval_ms)
|
|
141
|
+
|
|
142
|
+
if bisect_anim_html is None or falsepos_anim_html is None:
|
|
143
|
+
print("Cannot create animations. Check initial interval [a, b].")
|
|
144
|
+
return
|
|
145
|
+
|
|
146
|
+
# Create Output widgets to capture rich HTML and script execution
|
|
147
|
+
bisect_out = widgets.Output()
|
|
148
|
+
falsepos_out = widgets.Output()
|
|
149
|
+
|
|
150
|
+
with bisect_out:
|
|
151
|
+
display(bisect_anim_html)
|
|
152
|
+
|
|
153
|
+
with falsepos_out:
|
|
154
|
+
display(falsepos_anim_html)
|
|
155
|
+
|
|
156
|
+
# Assign Output widgets as the tab children
|
|
157
|
+
tab_container = widgets.Tab()
|
|
158
|
+
tab_container.children = [bisect_out, falsepos_out]
|
|
159
|
+
|
|
160
|
+
tab_container.set_title(0, 'Bisection')
|
|
161
|
+
tab_container.set_title(1, 'False Position')
|
|
162
|
+
|
|
163
|
+
display(tab_container)
|
|
@@ -138,20 +138,26 @@ class RootFinderOpen:
|
|
|
138
138
|
return HTML(anim.to_jshtml())
|
|
139
139
|
|
|
140
140
|
def show_toggle_open(self, interval_ms=750):
|
|
141
|
-
|
|
142
|
-
|
|
141
|
+
newton_anim_html = self._make_animation_open('Newton', interval_ms)
|
|
142
|
+
secant_anim_html = self._make_animation_open('Secant', interval_ms)
|
|
143
143
|
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
144
|
+
if newton_anim_html is None or secant_anim_html is None:
|
|
145
|
+
print("Cannot create animations. Check function definition or initial points (x0, x1).")
|
|
146
|
+
return
|
|
147
147
|
|
|
148
|
-
|
|
149
|
-
|
|
148
|
+
newton_out = widgets.Output()
|
|
149
|
+
secant_out = widgets.Output()
|
|
150
150
|
|
|
151
|
-
|
|
152
|
-
|
|
151
|
+
with newton_out:
|
|
152
|
+
display(newton_anim_html)
|
|
153
|
+
|
|
154
|
+
with secant_out:
|
|
155
|
+
display(secant_anim_html)
|
|
153
156
|
|
|
154
|
-
|
|
155
|
-
|
|
157
|
+
tab_container = widgets.Tab()
|
|
158
|
+
tab_container.children = [newton_out, secant_out]
|
|
156
159
|
|
|
157
|
-
|
|
160
|
+
tab_container.set_title(0, 'Newton')
|
|
161
|
+
tab_container.set_title(1, 'Secant')
|
|
162
|
+
|
|
163
|
+
display(tab_container)
|
{executable_engineering-0.1.38.dist-info → executable_engineering-0.1.40.dist-info}/METADATA
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: executable_engineering
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.40
|
|
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,14 +1,14 @@
|
|
|
1
1
|
executable_engineering/__init__.py,sha256=TbE18BDMSDAqyHnJI0XQXMIcM6bXQv8ebV3rWijyVP0,1656
|
|
2
2
|
executable_engineering/closedoptimization_module.py,sha256=i9KkdulyCZmriYKlx0CuUetjoMmxJm9ADWgStU3w85w,9273
|
|
3
|
-
executable_engineering/closedrootfinder_module.py,sha256=
|
|
3
|
+
executable_engineering/closedrootfinder_module.py,sha256=hQ6iWNi16RkZTaE_WPUEwkohmrYrAyU8WWSXO2EPLJY,6000
|
|
4
4
|
executable_engineering/gradientoptimization_module.py,sha256=-2fErE9cemSEPeV9PlWOf4cF7Tr6DjilEw_NxvE-JYw,6601
|
|
5
5
|
executable_engineering/linearsystems_module.py,sha256=w6UkwZu80gUz5bAIWY47xJbwaEVzR9tCcIBkMsKjIRk,18356
|
|
6
6
|
executable_engineering/neuralnet_module.py,sha256=Hu9QFoMyODg4RCEpHmT9zTwzjcVFYM8ZLYtbB3CbrsA,10102
|
|
7
7
|
executable_engineering/numerical_error_module.py,sha256=wxfYP8u29c19I2D6MxpQV3zDMV0DpS1QUqFpp3f6eGE,1204
|
|
8
8
|
executable_engineering/openoptimization_module.py,sha256=OCPyrynkTo1It50RoT7irnL72aQn6FexE_R1SfFYxlg,8590
|
|
9
|
-
executable_engineering/openrootfinder_module.py,sha256=
|
|
10
|
-
executable_engineering-0.1.
|
|
11
|
-
executable_engineering-0.1.
|
|
12
|
-
executable_engineering-0.1.
|
|
13
|
-
executable_engineering-0.1.
|
|
14
|
-
executable_engineering-0.1.
|
|
9
|
+
executable_engineering/openrootfinder_module.py,sha256=R_lPtCQsIGLXV-j_uDpQepImOOgtgA7I6qnhUPwWLLc,5944
|
|
10
|
+
executable_engineering-0.1.40.dist-info/licenses/LICENSE,sha256=Tg4nrt8rFhgpkPbIA8SWoCR3MlGLw0NufB8AE6-TH_o,1074
|
|
11
|
+
executable_engineering-0.1.40.dist-info/METADATA,sha256=c5xaBad3ZQp3CRxqrRy8JV0hPZtmYmMOzBLVH6WrRKo,1648
|
|
12
|
+
executable_engineering-0.1.40.dist-info/WHEEL,sha256=YVMoNqKzERt-wjUZwJ33xBGAwnFl-4cqbYkTtWa4itE,91
|
|
13
|
+
executable_engineering-0.1.40.dist-info/top_level.txt,sha256=0U5ATV5WGTLvN9rRSjQ54TyL-ztTyXaN3FzZ_QMq4HM,23
|
|
14
|
+
executable_engineering-0.1.40.dist-info/RECORD,,
|
|
File without changes
|
{executable_engineering-0.1.38.dist-info → executable_engineering-0.1.40.dist-info}/licenses/LICENSE
RENAMED
|
File without changes
|
{executable_engineering-0.1.38.dist-info → executable_engineering-0.1.40.dist-info}/top_level.txt
RENAMED
|
File without changes
|