Skip to content

fix dt error #1

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
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
6 changes: 4 additions & 2 deletions docs/get-started/model.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ Let's write those down in a dynamics function
=== "Python"

```py
import autograd.numpy as np

mc = 0.2 # mass of the cart (kg)
mp = 0.1 # mass of the pole (kg)
ℓ = 0.5 # distance to the center of mass (meters)
Expand Down Expand Up @@ -116,8 +118,8 @@ Our integrator takes in the state and control at the current time step and integ

dt = 0.01

A = AG.jacobian(lambda x_: cartpole_rk4(x_, ugoal))(xgoal)
B = AG.jacobian(lambda u_: cartpole_rk4(xgoal, u_))(ugoal)
A = AG.jacobian(lambda x_: cartpole_rk4(x_, ugoal, dt))(xgoal)
B = AG.jacobian(lambda u_: cartpole_rk4(xgoal, u_, dt))(ugoal)
```

=== "Julia"
Expand Down