// Table view of the charted data, one collapsible table per curve. import type { ChartCurve } from "./WorkPrecisionChart"; export function PointsTable({ curves }: { curves: ChartCurve[] }) { const nonEmpty = curves.filter((c) => c.points.length > 0); if (nonEmpty.length === 0) return null; return (
| n | rel max error | rel L2 error | solve (s) | cold (s) |
|---|---|---|---|---|
| {p.n} | {p.relMax.toExponential(2)} | {p.relL2.toExponential(2)} | {p.solveSeconds.toFixed(4)} | {p.coldSeconds.toFixed(4)} |