numODEsolver 0.1__tar.gz → 0.2__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: numODEsolver
3
- Version: 0.1
3
+ Version: 0.2
4
4
  Summary: Tool that solves and plots ODE's numerically. Written in Python.
5
5
  Home-page: https://github.com/lukasnf/Numerical-ODE-Solver
6
6
  Classifier: Programming Language :: Python :: 3
@@ -19,6 +19,7 @@ Requires-Dist: scipy
19
19
  This project is a Python implementation for solving ordinary differential equations (ODEs) numerically. The script allows users to choose between two methods: Euler's Method and Runge-Kutta 4th Order Method (RK4), providing a visual representation of the solution.
20
20
 
21
21
  ## Requirements
22
+ Python version >= 3.8
22
23
 
23
24
  Ensure the following Python libraries are installed:
24
25
 
@@ -28,15 +29,27 @@ pip install numODEsolver
28
29
  ```
29
30
  ## Example
30
31
  ```bash
32
+ from numODEsolver import solver
33
+ import numpy as np #optional for constants
34
+
31
35
  solver = solver()
32
- f = solver.get_function("cos(x)")
36
+ f = solver.get_function("cos(x)") , f = solver.get_function("diff(y)")
33
37
  x,y = solver.solve_rk4(f,x0=0,y0=1,n=10000,bound=10.1)
34
38
  solver.plot(x,y,xlabel="x",ylabel="y",title="rk4")
35
39
  print(solver.get_value(x,y,val=10,dec=5)
36
40
  ```
41
+
42
+ # Version History
43
+
44
+ - 8.12.2024 - v0.1 -> only 1st order ODE's are solvable, more features coming soon
45
+
46
+
47
+ ---
37
48
  For more documentation take a look at the source code on my GitHub.
38
49
 
39
50
  You can modify the script to add more methods, adjust default parameters, or change visualization settings.
40
51
 
41
52
  This project is open-source and free to use. Contributions and suggestions are welcome!
42
53
 
54
+ Lukas
55
+
@@ -3,6 +3,7 @@
3
3
  This project is a Python implementation for solving ordinary differential equations (ODEs) numerically. The script allows users to choose between two methods: Euler's Method and Runge-Kutta 4th Order Method (RK4), providing a visual representation of the solution.
4
4
 
5
5
  ## Requirements
6
+ Python version >= 3.8
6
7
 
7
8
  Ensure the following Python libraries are installed:
8
9
 
@@ -12,15 +13,27 @@ pip install numODEsolver
12
13
  ```
13
14
  ## Example
14
15
  ```bash
16
+ from numODEsolver import solver
17
+ import numpy as np #optional for constants
18
+
15
19
  solver = solver()
16
- f = solver.get_function("cos(x)")
20
+ f = solver.get_function("cos(x)") , f = solver.get_function("diff(y)")
17
21
  x,y = solver.solve_rk4(f,x0=0,y0=1,n=10000,bound=10.1)
18
22
  solver.plot(x,y,xlabel="x",ylabel="y",title="rk4")
19
23
  print(solver.get_value(x,y,val=10,dec=5)
20
24
  ```
25
+
26
+ # Version History
27
+
28
+ - 8.12.2024 - v0.1 -> only 1st order ODE's are solvable, more features coming soon
29
+
30
+
31
+ ---
21
32
  For more documentation take a look at the source code on my GitHub.
22
33
 
23
34
  You can modify the script to add more methods, adjust default parameters, or change visualization settings.
24
35
 
25
36
  This project is open-source and free to use. Contributions and suggestions are welcome!
26
37
 
38
+ Lukas
39
+
@@ -6,7 +6,7 @@ import numpy as np
6
6
  class solver:
7
7
 
8
8
  # get_function() -> Takes a function of x and y as an input. Make sure to use correct python syntax and put everything in curved brackets.
9
- # --> Example: solver.get_function("x+y"), The diff.eq. would then be: y' = x+y and it will be numerically solved for y.
9
+ # --> Example: numODEsolver.get_function("x+y"), The diff.eq. would then be: y' = x+y and it will be numerically solved for y.
10
10
  def get_function(self,func):
11
11
  x,y = sp.symbols("x,y")
12
12
  func = sp.sympify(func)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: numODEsolver
3
- Version: 0.1
3
+ Version: 0.2
4
4
  Summary: Tool that solves and plots ODE's numerically. Written in Python.
5
5
  Home-page: https://github.com/lukasnf/Numerical-ODE-Solver
6
6
  Classifier: Programming Language :: Python :: 3
@@ -19,6 +19,7 @@ Requires-Dist: scipy
19
19
  This project is a Python implementation for solving ordinary differential equations (ODEs) numerically. The script allows users to choose between two methods: Euler's Method and Runge-Kutta 4th Order Method (RK4), providing a visual representation of the solution.
20
20
 
21
21
  ## Requirements
22
+ Python version >= 3.8
22
23
 
23
24
  Ensure the following Python libraries are installed:
24
25
 
@@ -28,15 +29,27 @@ pip install numODEsolver
28
29
  ```
29
30
  ## Example
30
31
  ```bash
32
+ from numODEsolver import solver
33
+ import numpy as np #optional for constants
34
+
31
35
  solver = solver()
32
- f = solver.get_function("cos(x)")
36
+ f = solver.get_function("cos(x)") , f = solver.get_function("diff(y)")
33
37
  x,y = solver.solve_rk4(f,x0=0,y0=1,n=10000,bound=10.1)
34
38
  solver.plot(x,y,xlabel="x",ylabel="y",title="rk4")
35
39
  print(solver.get_value(x,y,val=10,dec=5)
36
40
  ```
41
+
42
+ # Version History
43
+
44
+ - 8.12.2024 - v0.1 -> only 1st order ODE's are solvable, more features coming soon
45
+
46
+
47
+ ---
37
48
  For more documentation take a look at the source code on my GitHub.
38
49
 
39
50
  You can modify the script to add more methods, adjust default parameters, or change visualization settings.
40
51
 
41
52
  This project is open-source and free to use. Contributions and suggestions are welcome!
42
53
 
54
+ Lukas
55
+
@@ -1,10 +1,10 @@
1
1
  LICENSE
2
2
  README.md
3
3
  setup.py
4
+ numODEsolver/__init__.py
5
+ numODEsolver/solver.py
4
6
  numODEsolver.egg-info/PKG-INFO
5
7
  numODEsolver.egg-info/SOURCES.txt
6
8
  numODEsolver.egg-info/dependency_links.txt
7
9
  numODEsolver.egg-info/requires.txt
8
- numODEsolver.egg-info/top_level.txt
9
- solver/__init__.py
10
- solver/solver.py
10
+ numODEsolver.egg-info/top_level.txt
@@ -0,0 +1 @@
1
+ numODEsolver
@@ -7,13 +7,13 @@ classifiers = [
7
7
  ]
8
8
 
9
9
  setup(
10
- name= "numODEsolver",
11
- version= "0.1",
10
+ name="numODEsolver",
11
+ version= "0.2",
12
12
  description= "Tool that solves and plots ODE's numerically. Written in Python.",
13
13
  long_description=open("README.md").read(),
14
14
  long_description_content_type="text/markdown",
15
15
  url="https://github.com/lukasnf/Numerical-ODE-Solver",
16
- packages = find_packages(),
16
+ packages = ["numODEsolver"],
17
17
  install_requires=["numpy","matplotlib","sympy","scipy"],
18
18
  classifiers=classifiers,
19
19
  python_requires=">=3.8",
@@ -1 +0,0 @@
1
- solver
File without changes
File without changes