File tree Expand file tree Collapse file tree 1 file changed +10
-5
lines changed Expand file tree Collapse file tree 1 file changed +10
-5
lines changed Original file line number Diff line number Diff line change 4
4
5
5
Solving first-order differential equations using Runge-Kutta method.
6
6
7
- dy/dx = f(y,x) with start condition: y(x = x0) = y0
7
+ - ` expr ` : f(y,x) = dy/dx with start condition: y(x = x0) = y0
8
+ - ` x0 ` , ` y0 ` : initial x, y
9
+ - ` xf ` : final x
10
+ - ` yf ` : result
11
+ - ` maxseq ` : equivalent to precision
12
+ - ` maxerr ` : maximum allowed error
13
+ - ` errcode ` : 0 for success; otherwise calculation error
8
14
9
- x0,y0 = initial x,y
10
- xf = final x
11
- errcode = 0 for success; otherwise calculation error
12
- yf = result
15
+ ### Example 1
13
16
14
17
```
15
18
' Solving dy/dx = 7*y^2 * x^3 with start condition y(2) = 3
@@ -38,6 +41,8 @@ if(errcode != 0) then
38
41
endif
39
42
```
40
43
44
+ ### Example 2
45
+
41
46
```
42
47
' Defining the differential equation for a stiffness system
43
48
You can’t perform that action at this time.
0 commit comments