arXiv
Browser-based engineering lessons flag their own bad settings
Browser-based engineering lessons become useful not when AI makes them look interactive, but when the pages can expose numerical settings that make their simulations untrustworthy. The authors produced six single-file HTML demonstrators and tested them against independent calculations and reference answers. In a circuits class, a student could adjust components beside the equation and see the page flag a coarse time step, if instructors continue to verify and maintain the generated code.
An engineering student often has to chase one idea across three places: slides for the picture, a PDF for the derivation, and a MATLAB script for the moving model. An instructor who wants all of that in one lesson usually also needs web-development skills. Today, a polished animation can look convincing while quietly using the wrong equation or numerical method. A page that runs is not necessarily a page that teaches the truth.
One lesson, several jobs
A browser can already handle the pieces such a lesson needs. HTML can hold ordinary text, mathematical notation, graphics, JavaScript controls, and quizzes. That means a student can change a value and see a graph respond without opening a separate scientific-computing program.
But the browser is not automatically a better calculator. MATLAB and Python remain better choices for advanced numerical work because they have mature tools for solving difficult scientific problems. And even a correct calculation does not prove that the model describes the physical world. A check can show that a page agrees with a known answer for a chosen case; it cannot make a bad model become a good one.
There is also a teaching problem. Give learners too many controls without guidance and the page becomes another place to get lost. The student no longer switches between files, but still has to navigate a confusing lesson.
The page that can catch itself
The authors used generative AI to help turn existing course materials into six single-file HTML lessons covering 18 engineering tasks. Each page brought together explanations, equations, visualizations, a simulation, and a quiz. The important part was not asking an AI system to make an attractive page. It was putting the page behind checks before students saw it.
The release process included browser testing, instructor approval of the mathematics and physics, and trials at extreme parameter settings. The pages were also tested with random combinations of settings. For selected tasks, the results were checked against analytical answers when those existed, then recomputed in Python and MATLAB by a colleague who had not helped build the pages.
The pages could make a numerical failure visible. When the authors deliberately chose settings that did not give a calculation enough resolution, the lesson displayed a visible “FAIL” result instead of crashing. In other words, the simulation did not simply produce a picture and ask the student to trust it. It warned that its settings had become too rough for the calculation.
The checks were encouraging but not a certificate of truth. All tested default settings stayed within a 1% tolerance, except for one finite-difference time-domain simulation that used a looser tolerance. The work also uncovered a mistake in the way one circuit lesson measured peak error; the authors corrected it in the released files. That discovery is part of the point: testing is not paperwork after the lesson is built. It is how the lesson finds what its author missed.


A circuit lesson without the file hunt
Imagine an undergraduate circuits class. A student opens one page on a laptop and changes resistance, inductance, capacitance, or frequency. The phasor diagram and resonance curve change beside the equation that produced them. The quiz can ask about the result on the same page, rather than sending the student back through slides and a separate MATLAB file.
That could make browser lessons useful for teachers who already have slides, notes, and models to reuse. It could also let students explore without each needing a licensed scientific-computing installation. More importantly, a lesson could show numerical resolution failing instead of presenting every output as an unquestionable black box.
The conditions are substantial. The pages must be maintained, the navigation must be clear, and instructors must keep responsibility for the models and explanations. The authors did not measure whether students learned more, whether the pages save development time, or whether they remain reliable over years. Student usability was classified as marginal, and although most of the screened students preferred the integrated page, only some lecturers said they intended to try it in a course.
AI may make these interactives easier to produce. The harder job is proving that the calculation on the page is not quietly wrong. If that checking workflow can be repeated and extended beyond a few tested settings, the browser page could become a useful layer around slides, mathematical notes, and scientific-computing tools—not a replacement for them.