Comment by JonScott79

Comment by JonScott79

Hey HN,

Jon here. I built Pythos (https://pythos.lanzar.me) because existing EdTech tools usually fall into one of two traps:

LLM tutors hallucinate calculations or dump full homework solutions: They can't do exact symbolic algebra reliably, and they spoon-feed answers instead of actually teaching students how to think through the derivation. Interactive physics sandboxes (like PhET) are silent: You can drag a slider or watch a pendulum swing, but when you get confused by the underlying equations, the simulation can't talk to you, diagnose your misconceptions, or walk you through the math. Pythos is an open, 100% free educational platform that merges deterministic computer algebra, real-time interactive physics simulations, and Socratic guidance. No paywalls, no logins required, and zero student fees.

Here is the complete architectural and functional breakdown of what’s under the hood:

1. Dual-Engine Mathematical Ground Truth (Zero Hallucinations) Instead of trusting an LLM’s stochastic text generator for calculations, Pythos uses a multi-tier deterministic verification bridge:

SymPy Computer Algebra System (CAS): An authoritative backend symbolic math engine that computes exact derivatives, integrals, limits, differential equations, and algebraic equivalence. Client-Side Math.js & Deterministic Router: Intercepts calculations, unit conversions, and known STEM queries, resolving them deterministically in < 2ms without burning unnecessary LLM tokens. Claim-Verification & Withholding Gateway: Every mathematical claim generated by the conversational model is parsed into formal symbolic assertions and verified against the CAS before being displayed. If a step contradicts mathematical truth, Pythos withholds the error and Socratic-guides the student. 2. The PhET-Style Simulation Lab (17 Interactive Instruments) Accessible right from the top toolbar ([ Sim Lab ]), students can launch full-stage, slider-controlled interactive simulations that update in real time with high-contrast, responsive canvas rendering:

Mechanics & Dynamics (10 Models): Classical Projectile Motion: Parabolic ballistics under uniform gravity, apex tracking, ground range, flight time, and launch/apex velocity vectors. Newton's Second Law & Inclined Plane: $F_{\text{net}} = ma$ on adjustable inclines with mass, applied force, gravity, and kinetic friction coefficients. Conservation of Mechanical Energy: Trading gravitational potential energy ($mgh$) for kinetic energy ($\frac{1}{2}mv^2$) with real-time bar graphs. 1D Momentum & Collisions: Elastic and inelastic particle collisions with momentum and kinetic energy conservation tracking. Hooke's Law & Oscillations: Restoring spring forces ($F = -kx$), frequency, and elastic potential energy ($U = \frac{1}{2}kx^2$). Simple Harmonic Pendulum: Period calculations with Borda large-angle corrections ($T \approx 2\pi\sqrt{L/g}$), restoring torque ($\tau = -mgL\sin\theta$), and energy distribution. Wave Mechanics & Propagation: Continuous harmonic waves examining amplitude, frequency, phase, wave speed ($v = f\lambda$), and wavelength. Geometric Optics & Snell's Law: Planar boundary refraction ($n_1\sin\theta_1 = n_2\sin\theta_2$), media refractive index presets (Air, Water, Glass, Diamond), angle arcs, and automatic Total Internal Reflection (TIR) detection. Archimedes' Buoyancy & Upthrust: Hydrostatic displacement ($F_b = \rho_f V g$), dynamic waterline calculations, material densities (Wood, Ice, Steel, Gold), and net force vector equilibrium. Direct-Current Circuits & Ohm's Law: $V = IR$ with adjustable electromotive force, resistance, and current flow animations. Mathematics & Geometry (6 Models): Right Triangle Inspector: Interactive Pythagorean geometry ($a^2 + b^2 = c^2$), trigonometric ratios ($\sin, \cos, \tan$), and dynamic angle calculations. Unit Circle Trigonometry: Continuous angle rotation ($\theta$) mapping sine and cosine projections onto the Cartesian coordinate plane in radians and degrees. Differential Calculus & Tangent Lines: Secant lines converging to instantaneous derivatives ($f'(x)$) with zoomable slope tangents. Circle & Sector Geometry: Radius, circumference, area, arc length ($s = r\theta$), and sector area calculations. Normal Distribution & Gaussian Curve: Standard deviation ($\sigma$), mean ($\mu$), and empirical probability density shading ($68-95-99.7%$ rule). Exponential Growth & Decay: Compound growth modeling $N(t) = N_0 e^{kt}$ with doubling times and half-life projections. Chemistry & Thermodynamics (1 Model): Ideal Gas Laws: Kinetic molecular container modeling pressure, volume, temperature, and moles ($PV = nRT$). 3. The "Ask Pythos" Socratic Bridge Inside any active simulation, students can adjust sliders, observe an unexpected physical phenomenon (e.g. Total Internal Reflection or a floating block), and click Ask Pythos .

This seamlessly passes the active state parameters directly into the conversation. Rather than answering for them, Pythos uses a "Give the Student the Next Step" loop:

Guides learners one cognitive step at a time. Validates student derivations. Catches misconceptions early with targeted hints rather than endless trivia. 4. Built-in STEM Utilities 2D Function Grapher: Canvas-based continuous plotting for scalar curves with pan/zoom and coordinate readouts. CAS / Scientific Calculator: Built-in keypad with exact root and fraction parsing. Multimodal Vision Input: Students can drag-and-drop or snap phone photos of math worksheets; an OCR normalizer extracts and cleans up fractions, matrices, and expressions for tutoring. Direct Feedback & Tool Requesting: Students can click the Report button on any message to request new simulations or report bugs directly to our engineering team without support-ticket red tape. Tech Stack: Frontend: Vanilla JavaScript + HTML5 Canvas (zero heavy frontend frameworks, instant load times, clean dark/light classical aesthetic, fully accessible). Backend Gateway: Node.js / Express deployed on Railway. CAS & Verification: Python SymPy + Math.js. Inference Pipeline: Hybrid local/remote LLM orchestration (Ollama + Groq/Llama-3 reasoning) with strict deterministic fast-paths. The web app is live at https://pythos.lanzar.me.

I’d love for teachers, students, and engineers to try it out, poke holes in the physics models, and let me know what tools or simulations you'd like to see added next!

Replies JonScott79 · 21h
Open on HN
Loading the discussion…

Domain filters

Stories from these domains are hidden from every list. Subdomains match too: blocking substack.com also hides danluu.substack.com.

    New collection

    Delete this collection?

    About YAVCHN

    YAVCHN is a reader for Hacker News and Lobsters, with articles and discussions in separate windows or Classic pages.

    Created by Paul Parks and built with PUDL.

    YAVCHN source code on GitHub

    Privacy policy · Terms of use

    Help

    Keyboard

    j / k
    Move down and up the story list. The arrow keys scroll whatever has focus.
    Enter
    Read the marked story in the article reader.
    ]
    Read the next story in the same article-reader applet. Back returns to the previous story.
    p
    Pin or unpin the marked story, which keeps it in Pinned.
    n / N
    Move to the next or previous top-level comment in the window in front.
    c
    Collapse or expand that comment.
    f
    Hide or show the story list.
    Esc
    Close a menu or this help.
    Access key m
    Go to the menu bar. Most browsers take it with Alt on Windows and Linux, and Safari with Control and Option.
    ?
    Show this help.

    Windows

    Each story opens in a window holding its article above its discussion; drag the bar between them to share the room differently. A window can be moved by its title bar, resized from any edge, snapped to a half or a corner by dragging it there, maximised, or minimised to the bar at the foot of the page. Use Window > New reader window to open an empty reader, or Story > Open in new reader window to open another reader for the current article. Docked readers keep their articles when you select another story from the sidebar. Minimized readers can be restored and reused for their site. A window's Next story link reads on down the list in the same window.

    A link in a comment or an article to another Hacker News or Lobsters thread opens that thread in a window too. A link to a single HN comment opens the comment above its replies.

    While a story's window is in front, the Story and Discussion menus in the menu bar hold its commands: pinning, Next story, sorting, collapsing every thread, jumping to the first new comment. Each window also remembers where you were in its article and discussion, so a reload, or Back to a story that Next took you past, finds your place again. Closing a window forgets it.

    The whole arrangement lives in the address, so a bookmark or a shared link brings it back, and Back undoes the last change. Moving between Hacker News, Lobsters, their lists, Pinned and Find changes only the list, and leaves the windows open.

    The list

    The pin at the start of a row keeps the story in Pinned, and the cross at its end hides it. Pinned can be narrowed by words in the title, site or author, by source, and to the stories you haven't opened yet, and ordered by when you pinned them, by points or by comments; the filters are part of the address, so a filtered view can be bookmarked. Scroll past the end of the list to load more. Domain filters, in the View menu, hide every story from a site.

    Collections are named lists of stories. Story > Add to collection files the story in front into one or more of them, and the Collections feed shows them all or one at a time; the menu that chooses collections also creates, renames, and deletes them. A note is your own text on a story. Choose Add note in a story's toolbar to write one; it saves as you type. Rows with a note carry the note mark, and the Notes feed lists every noted story and searches the text of your notes.

    Browsing view

    View > Windowed and View > Classic select the browsing view and save your default in this browser. Window view reuses a reader for each feed. Classic view opens stories and applets as pages. Open as a page is a one-off action that does not change your saved default. Use the Windowed selector to return an article to a window. Direct page links always open as pages.

    Applets

    The Applets menu in the menu bar holds three tools, each a window of its own. Replies to me takes your Hacker News user name and lists the replies to your last thirty comments and stories, checking again every three minutes while it is open, and marking what is new since you last marked them read. Look up a user opens a profile on Hacker News or Lobsters, with their submissions and recent comments, as a commenter's name in any discussion does; the bar at the top of a profile looks up someone else in the same window, and Back returns to the one before. Who is hiring? filters the posts of HN's monthly hiring threads by the words you type.

    They read only what the sites publish to everyone, so none of them asks for a login, and your user name stays in this browser anonymously and is included in retained applet state when signed in.

    Find

    Find takes any link and lists every time it was submitted to Hacker News and Lobsters, so you can read each discussion of it.

    About

    YAVCHN never sees your Hacker News or Lobsters login. The discussion is fetched from each site's public API; to vote or reply, follow the link above the discussion, or the arrow beside a comment, to the source's own site. Without a YAVCHN account, your data stays in this browser. When signed in, pins, collections, notes, blocked domains, and retained reading state are stored with your account and synchronized across devices. Hidden stories and layout stay in this browser. The privacy policy has the details.

    Open source: github.com/paulmooreparks/yavchn. Built with PUDL.