lawsynth/packages/chart-core/examples/phase_portrait.example.ts
2026-08-16 22:04:11 +03:00

5 lines
279 B
TypeScript

import { phasePortrait, normalizeTrajectory } from "../src/index.js";
const oscillator = normalizeTrajectory({ variables: ["x", "v"], times: [0, 1, 2, 3], values: [[1, 0], [0, -1], [-1, 0], [0, 1]] });
export const oscillatorPhasePortrait = phasePortrait(oscillator, "x", "v");