dynamic_2d_conservative_solve
Analyze a 2D system to check conservativeness, reconstruct Hamiltonian energy, classify equilibria, and trace closed orbits from differential equations; optionally return a phase portrait.
Instructions
Analyze a 2D system checking conservativeness (divergence-free), Hamiltonian/energy and closed orbits.
Args: eq_x, eq_y: Math expressions for x' and y'. mu: parameter value. x0..y_max, cantidad_trayectorias: integration and portrait settings. plot: When True, also return a PNG phase portrait.
Returns:
Dict with the divergence check, the Hamiltonian reconstruction, the
equilibrium classification and the trajectories. With plot=True a
list [dict, Image] is returned instead.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| h | No | ||
| mu | No | ||
| t0 | No | ||
| x0 | No | ||
| y0 | No | ||
| eq_x | No | y | |
| eq_y | No | x - x**3 | |
| plot | No | ||
| t_fin | No | ||
| x_max | No | ||
| x_min | No | ||
| y_max | No | ||
| y_min | No | ||
| cantidad_trayectorias | No |