This site is version 0.0.1. Most of the code on this site is drafted by an agent and needs review. I apologize for the AI-speak, we are working on rewriting it!
viv-lang.org

Notebooks · lib/cartpole_api

the cart-pole's entry points for Python (vipyr)

Typed wrappers over lib/cartpole.viv, so that vipyr.load exports them as Python functions taking and returning NumPy arrays: the model linearized about the upright, and a closed-loop run of the nonlinear model under a gain K. vp.control.cartpole_model and vp.control.simulate are these two defs.

Look inside this program

  • Atlas

    The program’s map: every function and which calls which.

  • There’s no recorded run of this program yet.

Shift+Enter in a cell runs it and moves to the next. Running a cell runs every cell above it too, as one program.

[1]lines 11–72