Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update 694-math-diffeqn.markdown
  • Loading branch information
Joe7M authored Oct 23, 2023
commit 75bba6f3ec435bc9a6b50c05f12d45d0d60f0c7c
15 changes: 10 additions & 5 deletions _build/reference/694-math-diffeqn.markdown
Original file line number Diff line number Diff line change
@@ -4,12 +4,15 @@

Solving first-order differential equations using Runge-Kutta method.

dy/dx = f(y,x) with start condition: y(x = x0) = y0
- `expr` : f(y,x) = dy/dx with start condition: y(x = x0) = y0
- `x0`, `y0` : initial x, y
- `xf` : final x
- `yf` : result
- `maxseq` : equivalent to precision
- `maxerr` : maximum allowed error
- `errcode` : 0 for success; otherwise calculation error

x0,y0 = initial x,y
xf = final x
errcode = 0 for success; otherwise calculation error
yf = result
### Example 1

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

### Example 2

```
' Defining the differential equation for a stiffness system