RKkit 0.1.2__tar.gz → 0.1.4__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.
- {rkkit-0.1.2 → rkkit-0.1.4}/.gitignore +2 -1
- {rkkit-0.1.2 → rkkit-0.1.4}/PKG-INFO +2 -2
- {rkkit-0.1.2 → rkkit-0.1.4}/PythonExamples/Gaussian.py +1 -0
- {rkkit-0.1.2 → rkkit-0.1.4}/RKkit/RKformula.py +10 -1
- {rkkit-0.1.2 → rkkit-0.1.4}/pyproject.toml +2 -2
- {rkkit-0.1.2 → rkkit-0.1.4}/tests/test.py +2 -3
- {rkkit-0.1.2 → rkkit-0.1.4}/AUTHORS +0 -0
- {rkkit-0.1.2 → rkkit-0.1.4}/LICENSE +0 -0
- {rkkit-0.1.2 → rkkit-0.1.4}/Notebooks/AllProperties.ipynb +0 -0
- {rkkit-0.1.2 → rkkit-0.1.4}/Notebooks/Example.ipynb +0 -0
- {rkkit-0.1.2 → rkkit-0.1.4}/Notebooks/Gaussian.ipynb +0 -0
- {rkkit-0.1.2 → rkkit-0.1.4}/Notebooks/GoodAndBad.ipynb +0 -0
- {rkkit-0.1.2 → rkkit-0.1.4}/Notebooks/RadauByCollocation.ipynb +0 -0
- {rkkit-0.1.2 → rkkit-0.1.4}/Notebooks/Tchebychev.ipynb +0 -0
- {rkkit-0.1.2 → rkkit-0.1.4}/Notebooks/Test.ipynb +0 -0
- {rkkit-0.1.2 → rkkit-0.1.4}/PythonExamples/AllProperties.py +0 -0
- {rkkit-0.1.2 → rkkit-0.1.4}/PythonExamples/Example.py +0 -0
- {rkkit-0.1.2 → rkkit-0.1.4}/PythonExamples/GoodAndBad.py +0 -0
- {rkkit-0.1.2 → rkkit-0.1.4}/PythonExamples/RadauByCollocation.py +0 -0
- {rkkit-0.1.2 → rkkit-0.1.4}/PythonExamples/Tchebychev.py +0 -0
- {rkkit-0.1.2 → rkkit-0.1.4}/PythonExamples/Test.py +0 -0
- {rkkit-0.1.2 → rkkit-0.1.4}/README.md +0 -0
- {rkkit-0.1.2 → rkkit-0.1.4}/RKkit/README.md +0 -0
- {rkkit-0.1.2 → rkkit-0.1.4}/RKkit/RKExceptions.py +0 -0
- {rkkit-0.1.2 → rkkit-0.1.4}/RKkit/RKPolutilities.py +0 -0
- {rkkit-0.1.2 → rkkit-0.1.4}/RKkit/RKRungeKutta.py +0 -0
- {rkkit-0.1.2 → rkkit-0.1.4}/RKkit/RKTrees.py +0 -0
- {rkkit-0.1.2 → rkkit-0.1.4}/RKkit/RKcolloc.py +0 -0
- {rkkit-0.1.2 → rkkit-0.1.4}/RKkit/RKplot.py +0 -0
- {rkkit-0.1.2 → rkkit-0.1.4}/RKkit/__init__.py +0 -0
- {rkkit-0.1.2 → rkkit-0.1.4}/RKkit/formulas.py +0 -0
- {rkkit-0.1.2 → rkkit-0.1.4}/TODO.md +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: RKkit
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.4
|
|
4
4
|
Summary: Playing with Runge-Kutta methods
|
|
5
5
|
Project-URL: Homepage, https://github.com/Thierry-Dumont/RKkit
|
|
6
6
|
Project-URL: Issues, https://github.com/Thierry-Dumont/RKkit/issues
|
|
@@ -9,7 +9,7 @@ License-Expression: GPL-3.0-or-later
|
|
|
9
9
|
License-File: LICENSE
|
|
10
10
|
Classifier: Operating System :: OS Independent
|
|
11
11
|
Classifier: Programming Language :: Python :: 3
|
|
12
|
-
Requires-Python: >=3.
|
|
12
|
+
Requires-Python: >=3.8
|
|
13
13
|
Provides-Extra: passagemath
|
|
14
14
|
Requires-Dist: passagemath-categories; extra == 'passagemath'
|
|
15
15
|
Requires-Dist: passagemath-combinat; extra == 'passagemath'
|
|
@@ -40,6 +40,7 @@ for n in range(2,4):
|
|
|
40
40
|
print("stiffly accurate? ",F.is_stiffly_accurate())
|
|
41
41
|
print("algebraically stable?",F.is_algebraically_stable())
|
|
42
42
|
print("conserve quadratic invariants?",F.conserve_quadratic_invariants())
|
|
43
|
+
print("symplectic ?",F.is_Symplectic())
|
|
43
44
|
p=RKplot(F,fill=True,ncurves=2,Enlarge=1)
|
|
44
45
|
p.show()
|
|
45
46
|
q=RKplot(F,fill=True,ncurves=2,type="star",Enlarge=1)
|
|
@@ -214,7 +214,16 @@ class RKformula(SageObject):
|
|
|
214
214
|
m2NI = impart(m2N)
|
|
215
215
|
m2n = generic_power(m2NR,2)+generic_power(m2NI,2)
|
|
216
216
|
m2d = RIaxeD*conj(RIaxeD)
|
|
217
|
-
|
|
217
|
+
|
|
218
|
+
# strange ! sometimes (actuelly with SDIRK3), the following
|
|
219
|
+
# instruction produces a FLINT exception.
|
|
220
|
+
# Excecuting again solves the problem.
|
|
221
|
+
# A bug in FLINT ?
|
|
222
|
+
try:
|
|
223
|
+
r=m2n/generic_power(m2d,2)
|
|
224
|
+
except:
|
|
225
|
+
r=m2n/generic_power(m2d,2)
|
|
226
|
+
return r
|
|
218
227
|
|
|
219
228
|
@_persistance
|
|
220
229
|
def is_module_of_stability_function_constant_on_Im(self):
|
|
@@ -3,13 +3,13 @@ requires = ["hatchling >= 1.26"]
|
|
|
3
3
|
build-backend = "hatchling.build"
|
|
4
4
|
[project]
|
|
5
5
|
name='RKkit'
|
|
6
|
-
version='0.1.
|
|
6
|
+
version='0.1.4'
|
|
7
7
|
authors = [
|
|
8
8
|
{ name="Thierry Dumont", email="tdumont@math.cnrs.fr" },
|
|
9
9
|
]
|
|
10
10
|
description="Playing with Runge-Kutta methods"
|
|
11
11
|
readme = "README.md"
|
|
12
|
-
requires-python = ">=3.
|
|
12
|
+
requires-python = ">=3.8"
|
|
13
13
|
classifiers = [
|
|
14
14
|
"Programming Language :: Python :: 3",
|
|
15
15
|
"Operating System :: OS Independent",
|
|
@@ -8,17 +8,16 @@ class TestRKkit:
|
|
|
8
8
|
""" Test computation of all known properties for a set of known
|
|
9
9
|
classical methods """
|
|
10
10
|
def testSetOfRKformulas(self):
|
|
11
|
-
""" All known properties
|
|
11
|
+
""" All known properties must be computed with all methods."""
|
|
12
12
|
cformulas=[formulas.Radau5(),formulas.Gauss4(),formulas.Radau2a(),
|
|
13
13
|
formulas.RK4(),
|
|
14
14
|
formulas.SDIRK3(),formulas.SDIRK5(),formulas.Lobatto4()]
|
|
15
15
|
Bads=[]
|
|
16
16
|
#
|
|
17
17
|
for f in cformulas:
|
|
18
|
-
print(r)
|
|
19
18
|
try:
|
|
20
|
-
|
|
21
19
|
F=RKformula(f)
|
|
20
|
+
print(f.Title)
|
|
22
21
|
F.compute_all_properties()
|
|
23
22
|
except:
|
|
24
23
|
Bads.append(f.Title)
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|