Show HN: KGraph, a GPU-accelerated graph plotter

by kaapipoon 3/27/2023, 9:34 AMwith 4 comments

Have you ever lost your mind at Desmos or Geogebra for occasionally being so god-damn slow and laggy? I have and, as a result, decided to make my own, GPU-accelerated (webgl2) graph plotter that renders equations, shaded plots, etc. with butter-smooth framerates.

Equations we are used to think as unplottable (with usable real-time performance), like for example `e ^ (sin(x) * x ^ 2 * cos(y)) = cos(e ^ (x * y))`, will render just as smoothly [0] as something simple, like `y = x ^ 2`.

Goals: * Rendering (almost) any equation without performance problems * Enabling acquiring new insights from being able to closely interact with complicated equations * Having an intuitive, easy-to-use and not-buggy interface

Non-goals: * Being a general-purpose CAS software

KGraph is under active development, and features such as parametric equations are coming in the near future!

Thank you for your feedback!

[0]: https://kaapporaivio.fi/graph/?d=camera%3A%28current%3A%28x%...

by mklon 3/27/2023, 11:05 AM

This looks great! I use Desmos and GeoGebra a lot for teaching, and things like implicit curves are often frustratingly slow with them.

Can you explain a bit how KGraph works? Do you plan to open source it? (No judgement if not.)

You can get maths notation input using MathQuill: http://mathquill.com/ (that's what Desmos uses)