[Equa_Plot] Support multiple functions and derivative overlay; add a WebAssembly build

Open
#391 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
35/100
Issue type
Feature
Clarity
Clearly specified
Activity status
Active
Tech stack
cpp, wasm

Research direction

Start with Equations_Field/Equa_Plot/main.cpp:181-192,241-256, where the issue identifies the single formula buffer and PlotLine call. Review the existing plotting and build setup, then determine how multiple functions, derivative overlays, and the Emscripten browser build fit together. Done means four simultaneous functions with a legend, a toggleable f'(x) overlay, and a Chromium demo that loads without console errors.

Written by the indexing model from the issue text.

Description

area: equations-field priority: P3 size: L type: enhancement

Summary

The UI has a single hard-coded "formula1" header and one line. Natural extensions for a maths-teaching repo: several functions with their own colours, a numeric derivative overlay (linking to the Differentiator project), and an Emscripten build so the plotter can be embedded on the docs site.

Location

  • Equations_Field/Equa_Plot/main.cpp:181-192,241-256

Evidence

Only one formula buffer exists (static char formula[128], line 182) and one PlotLine call (line 247).

Expected

Add/remove functions, toggle f'(x) overlay, and a browser demo.

Proposed fix

  1. std::vector<Function{std::string text; ImVec4 color; exprtk objects; error}> with +/- buttons.
  2. Optional derivative overlay via central differences (or exprtk's derivative() helper).
  3. Emscripten target (GLFW -> -sUSE_GLFW=3, WebGL2, imgui_impl_opengl3 with GLSL ES 3.0) published to the docs site.

Acceptance criteria

  • At least 4 simultaneous functions with legend
  • f'(x) overlay toggle
  • WASM build loads in Chromium with no console errors

Repository audit, November 2026 · Phase 9 · New features · evidence: reproduced · ref fractals-equations-061


Generated by Claude Code

Dominant language
C++
Stars
2
Forks
1
PR merge metrics
No merged PRs in 30d

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from ibra-kdbra/Math-Problems

All issues in ibra-kdbra/Math-Problems

Similar issues

More C++ issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.