(p: any)
| 323 | } |
| 324 | |
| 325 | // --- SymPy (batch) ---------------------------------------------------------- |
| 326 | function runSymPy(): Record<string, any> { |
| 327 | const tasks = cases.map((c) => ({ id: c.id, op: c.op, expr: c.sympyExpr, expr2: c.sympyExpr2 ?? null, var: c.varName, points: POINTS, point: c.point ?? null, a: c.a ?? null, b: c.b ?? null })); |
| 328 | const tmp = join(mkdtempSync(join(tmpdir(), 'wester-')), 'tasks.json'); |
| 329 | writeFileSync(tmp, JSON.stringify(tasks)); |