Skip to content

Commit 75bba6f

Browse files
authored
Update 694-math-diffeqn.markdown
1 parent ab0aa73 commit 75bba6f

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

_build/reference/694-math-diffeqn.markdown

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,15 @@
44
55
Solving first-order differential equations using Runge-Kutta method.
66

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
814

9-
x0,y0 = initial x,y
10-
xf = final x
11-
errcode = 0 for success; otherwise calculation error
12-
yf = result
15+
### Example 1
1316

1417
```
1518
' Solving dy/dx = 7*y^2 * x^3 with start condition y(2) = 3
@@ -38,6 +41,8 @@ if(errcode != 0) then
3841
endif
3942
```
4043

44+
### Example 2
45+
4146
```
4247
' Defining the differential equation for a stiffness system
4348

0 commit comments

Comments
 (0)