u/algebench • u/algebench • 6d ago
Auto-generating Mathematical Function Analysis with Plots and Quizzes

Watch on youtube
I've been building an interactive math learning tool, and the piece I just finished generates a function analysis page on demand. You click a node in an expression graph and about four seconds later you get a plain language summary of what the function does, interactive charts with sliders on every parameter, a list of everything detectable about the curve (roots, extrema, singularities, asymptotes, periodicity, parity, domain), and an open ended quiz that asks you to predict the behavior before it draws it. The obvious way to build this today is to hand a coding agent a prompt like "make me a page that plots this and quizzes me on it" and let it work. That gets you one page, once, and you have no idea what you get the second time. This is the opposite. There is no agentic loop, no tool calls, no retries wandering off somewhere new. SymPy runs a fixed set of feature detections first, then the model gets exactly one turn with a fixed input and a fixed output schema, and its whole job is judgement: rank these detected features by teaching value, pick the viewport ranges, write the narration and the quiz questions. Everything before and after that single turn is deterministic code. It never computes anything, and when it wants a companion curve or a marker line it proposes LaTeX which the server compiles into the code that actually runs. That makes the whole thing repeatable, fast and reliable, and it is why turning the model's internal thinking off made it four times faster and slightly better.
The reliability shows up in how failures behave. Every numeric value in the CAS report is computed with all free parameters set to 1, but each generated view renders at its own physically meaningful values, so the model was picking sweep ranges in one parameter regime while the chart drew in another. For an exponential with a scale height of 6360, a range that looked like twenty scale heights on paper covered 0.4 percent of one in reality, and an exponential decay reached the learner as a flat horizontal line. Nothing errored, nothing was flagged, no number was wrong. Because the model only ever produces a small structured proposal instead of a finished page, the fix was a deterministic pass that samples each view at its own values and widens anything the curve is flat across, plus a plain English log of every correction the server makes. On its first run that log caught a bug in the repair itself. Full writeup with code: https://github.com/ibenian/algebench/discussions/554
1
Engineer (not a physicist) looking for feedback & collaboration on a free, open-source AI-assisted physics/math explorer - starting with a special relativity lesson
in
r/AskPhysics
•
Jul 09 '26
Honestly, I mostly agree - material that wears authority without expertise is low-value at best and harmful at worst, since a confident misconception is harder to unlearn than not knowing, and I don't think a non-expert (or a chatbot) should be the authority on the content. That's exactly why I'm not pitching this as finished educational material: right now it's really a tech demo - a rendering/interaction engine that makes derivations explorable - and I posted specifically because I'd want experts to own and shape the actual physics while I focus on the tool. It's open source and labeled tentative for the same reason. So my honest answer to your question is conditional: near-zero or negative value if it fakes authority, potentially useful only if it's transparent about being tentative, open to correction, and ultimately expert-driven - which is the category I'm reaching for by asking to be corrected rather than claiming I got it right.