5.0.0
API
API v5.0.0 — Evaluate, Matrix, Chart.
- Added endpoint GET /evaluate: safely evaluates mathematical expressions using a Pratt parser (no
eval()). Supports operators+-*/%^, unary negation, constantspiande, and 14 built-in functions (sin,cos,tan,asin,acos,atan,sqrt,abs,floor,ceil,round,log,log2,log10). An optionalprecisionparameter (0–15) controls decimal places. Expression length is capped at 500 characters and recursion depth at 100. - Added endpoint POST /matrix: performs 8 matrix operations on up to 20×20 matrices:
add,subtract,multiply,scalar,transpose,determinant,inverse, andidentity. Determinant uses Gaussian elimination with partial pivoting; inverse uses Gauss-Jordan elimination. - Added endpoint POST /chart: generates SVG charts (bar, line, pie, donut) from data arrays. Supports custom colors, title, background, legend, and optional fixed dimensions. Set
modeto"data"to receive the raw chart data as JSON instead of SVG. Maximum 20 labels and 5 datasets. - Documentation URL in 404 error responses now always points to the latest version instead of the requested version.
Documentation
- Added documentation pages for Evaluate, Matrix, and Chart.
- Added all three endpoints to the Playground registry and sidebar.
- POST code snippets (curl, JS, Python) now use JSON bodies instead of form-encoded data.
- Panel component now correctly parses
json-typed params (chartdata, matrixmatrix) before sending, and convertsboolean-typed params from string. - Updated Terminal homepage demo: added chart and matrix examples, all requests now use v5 URLs and JSON bodies.
- Updated sidebar cross-links: v5 changelog links to previous v4 versions; v4 changelog links to v5.
- Updated homepage to promote v5 as the current version.