Sample a restricted arithmetic expression at evenly spaced x coordinates and return plot-ready JSON.
The frame below runs the same code as this page, in the reader's own browser. Nothing is sent to us, and nothing is sent to you.
Pick a dark background and the text and panels follow it, so the frame stays readable on a dark page.
The expression accepts x, arithmetic, parentheses, and eight named Math functions, with caret translated to exponentiation. The closed interval includes both endpoints; non-finite evaluations become null instead of invalid JSON numbers.
Expression: sin(x) Min x: -3.14 Max x: 3.14 Points: 9
X Y ------ --------- -3.14 -0.001593 -2.355 -0.707951 -1.57 -1 -0.785 -0.706825 0 0 0.785 0.706825 1.57 1 2.355 0.707951 3.14 0.001593
Lessons sample sine waves, chart components ingest x-y records, and numerical reviews locate sampled discontinuities.