Skip to content

Commit

Permalink
Merge pull request #962 from macquarrielucas/patch-1
Browse files Browse the repository at this point in the history
Included definition of v in this example
  • Loading branch information
ChrisRackauckas authored Jan 25, 2025
2 parents 970a3ed + 2cc01c3 commit e1adcdc
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions docs/src/examples/tensor_layer.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,13 @@ Let's consider the anharmonic oscillator described by the ODE
ẍ = - kx - αx³ - βẋ -γẋ³.
```

We first transform this second order differential equation into a system of first order
differential equations for use in `DiffEqFlux`: We let `ẋ = v` then
```math
ẋ = v \\
v̇ = - kx - αx³ - βv̇ -γv̇³.
```

To obtain the training data, we solve the equation of motion using one of the
solvers in `DifferentialEquations`:

Expand Down

0 comments on commit e1adcdc

Please sign in to comment.